1
0
forked from extern/nix-config

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.
This commit is contained in:
Donovan Glover 2023-12-02 13:33:26 -05:00
parent 4593d74d8c
commit 3b5b6782ca
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -74,6 +74,9 @@ in
typstfmt typstfmt
typst-lsp typst-lsp
typst-live typst-live
# ctags
universal-ctags
]; ];
editorconfig = { editorconfig = {
@ -161,6 +164,7 @@ in
nnoremap <silent> <leader>l :Rg<CR> nnoremap <silent> <leader>l :Rg<CR>
nnoremap <silent> <leader>; :NvimTreeToggle<CR> nnoremap <silent> <leader>; :NvimTreeToggle<CR>
nnoremap <silent> <leader>z :ZenMode<CR> nnoremap <silent> <leader>z :ZenMode<CR>
nnoremap <silent> <leader>b :TagbarToggle<CR>
vnoremap <C-s> y:silent !notify-send -t 4000 "" "$(tango '<C-r>0')"<CR>:<Esc> vnoremap <C-s> y:silent !notify-send -t 4000 "" "$(tango '<C-r>0')"<CR>:<Esc>
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
@ -289,7 +293,7 @@ in
require('lualine').setup { require('lualine').setup {
options = { options = {
theme = theme, theme = theme,
disabled_filetypes = {'NvimTree'} disabled_filetypes = {'NvimTree', 'tagbar'}
}, },
sections = { lualine_c = {'%f'} } sections = { lualine_c = {'%f'} }
} }
@ -465,6 +469,7 @@ in
vim-svelte vim-svelte
typst-vim typst-vim
nvim-treesitter.withAllGrammars nvim-treesitter.withAllGrammars
tagbar
]; ];
}; };