Vscode plugin: neovim

From wikinotes

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/nvim

On macos, allow auto-repeating keys.

defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false

Configuration

if exists('g:vscode')
    " VSCode extension
endif