@ -40,11 +40,14 @@
vimAlias = true;
withNodeJs = true;
plugins = with pkgs.vimPlugins; [
coc-explorer
coc-nvim
coc-clangd
coc-go
coc-spell-checker # NOTE: Broken in nixpkgs. Overridden in config/common.nix and pkg/default.nix.
fzf-vim
vim-airline
vim-go
onedark-vim
];
extraConfig = builtins.readFile ./vimrc;
@ -61,10 +61,11 @@ inoremap jj <Esc>
" (q)uit, (w)ith path edit, (e)dit, (r)eload
noremap ,q :wqa<CR>
noremap ,w :tabedit<SPACE>
noremap ,e :tabnew<CR>:Files<CR>
noremap ,w :edit<SPACE>
noremap ,e :Files<CR>
noremap ,r :so ~/.vimrc<CR>
" (h)elp
noremap ,f :CocCommand explorer --toggle<CR>
noremap ,h :help<SPACE>
noremap <C-j> :bn<CR>