A small VS Code extension that provides a simple command to toggle the VSCode Neovim integration on and off.
This extension does not embed Neovim or provide its own editor functionality. It only exposes a command that can be mapped to a keyboard shortcut, allowing you to quickly enable or disable the Neovim mode provided by the official VSCode Neovim extension.
Requirements
- VS Code
- The VSCode Neovim extension installed
- A working Neovim installation available on the host system
The Neovim extension must already be configured and working before using this extension.
Installation
Install the extension from the VS Code Marketplace, or install manually from a .vsix package:
- Open VS Code
- Open the Command Palette:
Ctrl+Shift+P - Select:
Extensions: Install from VSIX... - Select the extension package
Usage
The extension provides the following command:
neovim-toggle.toggleNeovim
Bind this command to any keyboard shortcut.
Example keybindings.json:
[
{
"key": "ctrl+shift+space",
"command": "neovim-toggle.toggleNeovim"
}
]
After adding the keybinding, pressing the shortcut will toggle VSCode Neovim mode.
How it works
This extension sets up a variable neovimEnabled to true or false when neovim-toggle.toggleNeovim command is called, depending on if VSCode Neovim is activated.
It does not:
- configure Neovim
- modify your Neovim configuration
- replace the VSCode Neovim extension
Configuration
No configuration is required other than mapping the shortcut.