mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 11:30:29 +01:00
Added vimwiki headers support in tagbar.
Additionally for the vim config, there should be also appropriate ctags configuration done in ~/.config/ctags/vimwiki.ctags: --langdef=vimwiki --langmap=vimwiki:.wiki --regex-vimwiki=/^=[ \t]+(.+)[ \t]+=$/\1/h,header/ --regex-vimwiki=/^==[ \t]+(.+)[ \t]+==$/. \1/h,header/ --regex-vimwiki=/^===[ \t]+(.+)[ \t]+===$/. \1/h,header/ --regex-vimwiki=/^====[ \t]+(.+)[ \t]+====$/. \1/h,header/ --regex-vimwiki=/^=====[ \t]+(.+)[ \t]+=====$/. \1/h,header/ --regex-vimwiki=/^======[ \t]+(.+)[ \t]+======$/. \1/h,header/
This commit is contained in:
7
vimrc
7
vimrc
@@ -537,6 +537,13 @@ let g:showmarks_include = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
"Tagbar {{{2
|
||||
nmap <Leader>t :Tagbar<CR>
|
||||
let g:tagbar_compact = 1
|
||||
let g:tagbar_type_vimwiki = {
|
||||
\ 'ctagstype' : 'vimwiki',
|
||||
\ 'kinds' : [
|
||||
\ 'h:header',
|
||||
\ ],
|
||||
\ 'sort' : 0
|
||||
\ }
|
||||
" Note: see statusline settings for status bar tag conf
|
||||
"}}}
|
||||
"{{{2
|
||||
|
||||
Reference in New Issue
Block a user