From 3b5b6782cac55880a01bfa5c994c1ab2dc69e338 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 2 Dec 2023 13:33:26 -0500 Subject: [PATCH] neovim: Add ctags support with tagbar 5 years later and ctags seem to work better, so I've decided to add them again mainly for Rust. --- home/neovim.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/neovim.nix b/home/neovim.nix index 0034e1fe..c1ca7473 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -74,6 +74,9 @@ in typstfmt typst-lsp typst-live + + # ctags + universal-ctags ]; editorconfig = { @@ -161,6 +164,7 @@ in nnoremap l :Rg nnoremap ; :NvimTreeToggle nnoremap z :ZenMode + nnoremap b :TagbarToggle vnoremap y:silent !notify-send -t 4000 "成果" "$(tango '0')": autocmd BufNewFile,BufRead *.ecr setlocal syntax=html @@ -289,7 +293,7 @@ in require('lualine').setup { options = { theme = theme, - disabled_filetypes = {'NvimTree'} + disabled_filetypes = {'NvimTree', 'tagbar'} }, sections = { lualine_c = {'%f'} } } @@ -465,6 +469,7 @@ in vim-svelte typst-vim nvim-treesitter.withAllGrammars + tagbar ]; };