aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-27 00:22:07 +0800
committerGuangxiong Lin <[email protected]>2022-03-27 00:22:07 +0800
commit6a29c792ceda37c34baba2620b2233895c6dd770 (patch)
treed73d27f0d82717bb252e8c6ab44946aad54fe8f0
parent964332d61e6dc9f6c42050cfacafb830fbead1e6 (diff)
downloaddotfiles-6a29c792ceda37c34baba2620b2233895c6dd770.tar.gz
dotfiles-6a29c792ceda37c34baba2620b2233895c6dd770.tar.bz2
dotfiles-6a29c792ceda37c34baba2620b2233895c6dd770.zip
Add tagbar into vim packages
-rw-r--r--.vim/after/plugin/airline.vim3
-rw-r--r--.vim/after/plugin/input-method.vim (renamed from .vim/after/plugin/misc.vim)2
-rw-r--r--.vim/after/plugin/tagbar.vim4
-rwxr-xr-xbin/vim-pack1
4 files changed, 8 insertions, 2 deletions
diff --git a/.vim/after/plugin/airline.vim b/.vim/after/plugin/airline.vim
new file mode 100644
index 0000000..6de5f3f
--- /dev/null
+++ b/.vim/after/plugin/airline.vim
@@ -0,0 +1,3 @@
+let g:airline#extensions#tabline#enabled = 1
+let g:airline#extensions#tagbar#enabled = 1
+
diff --git a/.vim/after/plugin/misc.vim b/.vim/after/plugin/input-method.vim
index f34ec9f..8497659 100644
--- a/.vim/after/plugin/misc.vim
+++ b/.vim/after/plugin/input-method.vim
@@ -1,5 +1,3 @@
-let g:airline#extensions#tabline#enabled = 1
-
" fcitx.vim
if !empty(glob('/usr/bin/fcitx5'))
packadd fcitx.vim
diff --git a/.vim/after/plugin/tagbar.vim b/.vim/after/plugin/tagbar.vim
new file mode 100644
index 0000000..6ed56d8
--- /dev/null
+++ b/.vim/after/plugin/tagbar.vim
@@ -0,0 +1,4 @@
+let g:tagbar_autoclose = 1
+let g:tagbar_autofocus = 1
+
+nnoremap <Leader><space>s :TagbarToggle<CR>
diff --git a/bin/vim-pack b/bin/vim-pack
index 00426ee..9eda443 100755
--- a/bin/vim-pack
+++ b/bin/vim-pack
@@ -112,6 +112,7 @@ update_package org.vim https://github.com/axvr/org.vim.git &
update_package fcitx.vim https://github.com/lilydjwg/fcitx.vim.git opt &
update_package smartim https://github.com/ybian/smartim.git opt &
update_package vim-table-mode https://github.com/dhruvasagar/vim-table-mode.git &
+update_package tagbar https://github.com/preservim/tagbar &
wait
vim '"+helptags ALL"' +q