fn init_nvim(state_ref: &Arc<UiMutex<State>>)