diff --git a/home/neovim.nix b/home/neovim.nix index 1cfcd873..dfd34737 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -178,7 +178,7 @@ in nnoremap l :Rg nnoremap ; :NvimTreeToggle nnoremap z :ZenMode - nnoremap b :TagbarToggle + nnoremap b :Vista!! vnoremap y:silent !notify-send -t 4000 "成果" "$(tango '0')": autocmd BufNewFile,BufRead *.ecr setlocal syntax=html @@ -568,6 +568,17 @@ in } ''; } + { + plugin = vista-vim; + config = /* vim */ '' + let g:vista_default_executive = 'nvim_lsp' + let g:vista_executive_for = { + \ 'rust': 'ctags', + \ } + + autocmd QuitPre * silent! :Vista! + ''; + } fzf-vim vim-caddyfile vim-graphql