Vscode plugin: neovim: Difference between revisions
From wikinotes
No edit summary |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Neat plugin, vscode drives a headless neovim.<br> | |||
Some plugins can work, but anything that would open a new pane (ex. Tagbar, Fugitive, NERDtree) won't work.<br> | |||
Fold management doesn't work. | |||
Useful if you're bound to vscode. | |||
= Documentation = | = Documentation = | ||
Line 33: | Line 37: | ||
Neovim: | Neovim: | ||
Neovim Executable Paths: /opt/homebrew/bin/nvim | Neovim Executable Paths: /opt/homebrew/bin/nvim | ||
</syntaxhighlight> | |||
On macos, allow auto-repeating keys. | |||
<syntaxhighlight lang="bash"> | |||
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote> | </blockquote> | ||
= Configuration = | |||
<blockquote> | |||
<syntaxhighlight lang="vim"> | |||
if exists('g:vscode') | |||
" VSCode extension | |||
endif | |||
</syntaxhighlight> | |||
</blockquote><!-- configuration --> |
Latest revision as of 19:23, 10 December 2022
Neat plugin, vscode drives a headless neovim.
Some plugins can work, but anything that would open a new pane (ex. Tagbar, Fugitive, NERDtree) won't work.
Fold management doesn't work.
Useful if you're bound to vscode.
Documentation
plugin https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim
Install
/* ~/Library/Application Support/Code/User/settings.json * * mod+shift+p: settings.json */ { "extensions.experimental.affinity": { "asvetliakov.vscode-neovim": 1 } "vscode-neovim.neovimExecutablePaths.darwin": "/opt/homebrew/bin/nvim" }# Or configure through settings UI # # mod+,: open extension settings Extensions: Neovim: Neovim Executable Paths: /opt/homebrew/bin/nvimOn macos, allow auto-repeating keys.
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
Configuration
if exists('g:vscode') " VSCode extension endif