I love modal editing. But I also love VSCode. This repository is my configuration for setting up VSCode with modal editing using a fully embedded Neovim instance with some sane defaults.
- Neovim 0.5.0 or greater.
- vscode-neovim extension.
- Which Key extension.
git clone https://github.com/casperstorm/bobw.git ~/.config/nvim
In Settings (JSON)
you need to add the path to Neovim executable and the vscode/init.vim
path.
Use $ which neovim
to find your path.
{
"vscode-neovim.neovimExecutablePaths.darwin": "/usr/local/bin/nvim",
"vscode-neovim.neovimInitVimPaths.darwin": "$HOME/.config/nvim/vimscript/vscode/init.vim"
}
In Keybindings Shortcuts (JSON)
I suggest adding the following keybindings to use Ctrl+h/j/k/l for moving between panels.
[
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl+j",
"command": "workbench.action.navigateDown"
},
{
"key": "ctrl+k",
"command": "workbench.action.navigateUp",
"when": "terminalFocus"
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight"
}
]
Which Key ships out of the box with keybindings which mimic the once from spacemacs. If you which to change them, you can do so in Settings (JSON)
. You can find my bindings in which-key.json.
No setup is needed. Launching nvim
in your Terminal of choice will use init.lua
. No plugins. No maintendance.