vim: Add fzf, vim-go and coc-explorer

master
Chan Wen Xu 2021-12-21 21:06:08 +07:00
parent 74f22f00bf
commit 9486d5a52e
Signed by: chanbakjsd
GPG Key ID: 7E9A74B1B07A7558
2 changed files with 6 additions and 2 deletions

@ -40,11 +40,14 @@
vimAlias = true; vimAlias = true;
withNodeJs = true; withNodeJs = true;
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
coc-explorer
coc-nvim coc-nvim
coc-clangd coc-clangd
coc-go coc-go
coc-spell-checker # NOTE: Broken in nixpkgs. Overridden in config/common.nix and pkg/default.nix. coc-spell-checker # NOTE: Broken in nixpkgs. Overridden in config/common.nix and pkg/default.nix.
fzf-vim
vim-airline vim-airline
vim-go
onedark-vim onedark-vim
]; ];
extraConfig = builtins.readFile ./vimrc; extraConfig = builtins.readFile ./vimrc;

@ -61,10 +61,11 @@ inoremap jj <Esc>
" (q)uit, (w)ith path edit, (e)dit, (r)eload " (q)uit, (w)ith path edit, (e)dit, (r)eload
noremap ,q :wqa<CR> noremap ,q :wqa<CR>
noremap ,w :tabedit<SPACE> noremap ,w :edit<SPACE>
noremap ,e :tabnew<CR>:Files<CR> noremap ,e :Files<CR>
noremap ,r :so ~/.vimrc<CR> noremap ,r :so ~/.vimrc<CR>
" (h)elp " (h)elp
noremap ,f :CocCommand explorer --toggle<CR>
noremap ,h :help<SPACE> noremap ,h :help<SPACE>
noremap <C-j> :bn<CR> noremap <C-j> :bn<CR>