aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-05-09 08:00:20 +0800
committerGuangxiong Lin <[email protected]>2022-05-09 08:00:20 +0800
commit917b1e99fb72a95dce89f45e25cc1d1333610e59 (patch)
treefa94c8454c14348ad154e1136572b562e0f83483
parente74110af1c0166885d67fa2f33d4c1c364c36c65 (diff)
downloaddotfiles-917b1e99fb72a95dce89f45e25cc1d1333610e59.tar.gz
dotfiles-917b1e99fb72a95dce89f45e25cc1d1333610e59.tar.bz2
dotfiles-917b1e99fb72a95dce89f45e25cc1d1333610e59.zip
Use tagbar again (vim)
-rw-r--r--.vim/after/plugin/minpac.vim1
-rw-r--r--.vim/after/plugin/tagbar.vim6
2 files changed, 7 insertions, 0 deletions
diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim
index ed9ce0a..2033a82 100644
--- a/.vim/after/plugin/minpac.vim
+++ b/.vim/after/plugin/minpac.vim
@@ -22,6 +22,7 @@ function! InitMinpac() abort
call minpac#add('https://github.com/prabirshrestha/vim-lsp')
call minpac#add('https://github.com/ctrlpvim/ctrlp.vim.git', {'type': 'opt'})
call minpac#add('https://github.com/FelikZ/ctrlp-py-matcher.git', {'type': 'opt'})
+ call minpac#add('https://github.com/preservim/tagbar.git')
call minpac#add('https://github.com/ludovicchabant/vim-gutentags.git')
call minpac#add('https://github.com/easymotion/vim-easymotion.git')
diff --git a/.vim/after/plugin/tagbar.vim b/.vim/after/plugin/tagbar.vim
new file mode 100644
index 0000000..691e781
--- /dev/null
+++ b/.vim/after/plugin/tagbar.vim
@@ -0,0 +1,6 @@
+let g:tagbar_autoclose = 1
+let g:tagbar_autofocus = 1
+
+let g:airline#extensions#tagbar#enabled = 0
+
+nnoremap <leader><leader>s :TagbarToggle<CR>