Skip to content

casperstorm/bobw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Best of both Worlds - VSCode configuration

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.

Example

Prerequisite

Installing

git clone https://github.com/casperstorm/bobw.git ~/.config/nvim

Setup

VSCode

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.

Neovim

No setup is needed. Launching nvim in your Terminal of choice will use init.lua. No plugins. No maintendance.