From dad2f5286e40ea037aedd2287aa5a58ae0f65856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 19 Jan 2022 09:35:52 +0100 Subject: [PATCH] add automatic formatting and ctags --- config/programs/vim.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/programs/vim.nix b/config/programs/vim.nix index 79ee008a..4a8e1455 100644 --- a/config/programs/vim.nix +++ b/config/programs/vim.nix @@ -187,6 +187,10 @@ let dsquotes = "''"; in " Resume latest coc list. nnoremap p :CocListResume + autocmd BufWrite * call CocAction('format') + + " ctags path + g:tagbar_ctags_bin = "${pkgs.universal-ctags}/bin/ctags"; ''; plugins = with pkgs.vimPlugins; [ nerdtree