3 ms·
https://github.com/asvetliakov/vscode-neovim https://github.com/asvetliakov/vscode-neovim just use that(it's in the extension store) and compile/download a som
by weaksauce 5y ago
https://github.com/asvetliakov/vscode-neovim https://github.com/asvetliakov/vscode-neovim
just use that(it's in the extension store) and compile/download a somewhat recent version of neovim. I think you either need it in the path or specify the path to neovim explicitly.
if you use neovim directly too you can check for it in your init.vim file:
if exists('g:vscode')
nmap j gj
nmap k gk
else
nnoremap j gj
nnoremap k gk
endif
if you have a vscode thing you want to call in normal mode you can use vscodenotify. they list the function name in the keybindings area of vscode:
nnoremap <silent> <space>= <Cmd> call VSCodeNotify('editor.action.formatDocument')<CR>
- wyclif 5y agoThanks! Helpful. Do you have to compile neovim or can you just brew install it?
- wyclif 5y agoI had trouble getting it running. I installed it and checked the paths and the settings (I'm on macOS) but obviously I'm missing something since I couldn't get it to work. I also made sure I have the latest version of neovim. Right now I have vscodevim running (I had disabled it before trying this so there weren't any conflicts), but that's something different. But I'd like to be able to use a real instance of neovim as the backend instead. So here's what I did: Installed vscode-neovim. Path to nvim was configured. Restarting vscode still isn't giving me neovim plugin functionality. Seeing nothing in the menus I might have to select to enable it.