From 9486d5a52ee20f2c8bfc3241d19e5986dc54456d Mon Sep 17 00:00:00 2001 From: Chan Wen Xu Date: Tue, 21 Dec 2021 21:06:08 +0800 Subject: [PATCH] vim: Add fzf, vim-go and coc-explorer --- home/home.nix | 3 +++ home/vimrc | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/home/home.nix b/home/home.nix index d813ea6..ecf68c1 100644 --- a/home/home.nix +++ b/home/home.nix @@ -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; diff --git a/home/vimrc b/home/vimrc index b1cbc40..81d757b 100644 --- a/home/vimrc +++ b/home/vimrc @@ -61,10 +61,11 @@ inoremap jj " (q)uit, (w)ith path edit, (e)dit, (r)eload noremap ,q :wqa -noremap ,w :tabedit -noremap ,e :tabnew:Files +noremap ,w :edit +noremap ,e :Files noremap ,r :so ~/.vimrc " (h)elp +noremap ,f :CocCommand explorer --toggle noremap ,h :help noremap :bn