diff options
-rw-r--r-- | nixpkgs/common.nix | 13 | ||||
-rw-r--r-- | vim/vimrc | 3 |
2 files changed, 15 insertions, 1 deletions
diff --git a/nixpkgs/common.nix b/nixpkgs/common.nix index f3cc2a9..1f98b2e 100644 --- a/nixpkgs/common.nix +++ b/nixpkgs/common.nix @@ -1,5 +1,8 @@ { pkgs, ... }: { home.username = "lx"; + home.packages = with pkgs; [ + nodejs-slim + ]; programs.direnv = { enable = true; @@ -22,7 +25,15 @@ programs.vim = { enable = true; extraConfig = (builtins.readFile ../vim/vimrc); - plugins = with pkgs.vimPlugins; [ vim-nix fzf-vim nerdtree vim-go ]; + plugins = with pkgs.vimPlugins; [ + vim-nix + fzf-vim + nerdtree + vim-go + coc-nvim + coc-json + coc-rust-analyzer + ]; }; programs.git.enable = true; @@ -16,6 +16,9 @@ map ; <ESC>:FZF<CR> nnoremap <leader>l :bnext<CR> nnoremap <leader>k :bprev<CR> +" S-D for prev/next Coc diagnostic +nnoremap <leader>d <Plug>(coc-diagnostic-next-error) +nnoremap <leader>s <Plug>(coc-diagnostic-prev-error) " Append modeline after last line in buffer. |