Skip to content

Commit

Permalink
Running tagbar with airline broke TagbarCurrent
Browse files Browse the repository at this point in the history
- It seems that airline initialize with uctags kinds table but
after that call InitTypes but there has wrong values.

Signed-off-by: <[email protected]>
  • Loading branch information
Javier Garcia committed Nov 7, 2024
1 parent 1c5a358 commit 4ea2078
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions autoload/tagbar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -328,17 +328,17 @@ function! s:InitTypes() abort
let type_go = tagbar#prototypes#typeinfo#new()
let type_go.ctagstype = 'go'
let type_go.kinds = [
\ {'short' : 'p', 'long' : 'package', 'fold' : 0, 'stl' : 0},
\ {'short' : 'i', 'long' : 'imports', 'fold' : 1, 'stl' : 0},
\ {'short' : 'p', 'long' : 'package', 'fold' : 0, 'stl' : 1},
\ {'short' : 'i', 'long' : 'imports', 'fold' : 1, 'stl' : 1},
\ {'short' : 'c', 'long' : 'constants', 'fold' : 0, 'stl' : 0},
\ {'short' : 'v', 'long' : 'variables', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'types', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'types', 'fold' : 0, 'stl' : 1},
\ {'short' : 'n', 'long' : 'intefaces', 'fold' : 0, 'stl' : 0},
\ {'short' : 'w', 'long' : 'fields', 'fold' : 0, 'stl' : 0},
\ {'short' : 'w', 'long' : 'fields', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'embedded', 'fold' : 0, 'stl' : 0},
\ {'short' : 'm', 'long' : 'methods', 'fold' : 0, 'stl' : 0},
\ {'short' : 'r', 'long' : 'constructors', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ ]
let type_go.sro = '.'
let type_go.kind2scope = {
Expand Down

0 comments on commit 4ea2078

Please sign in to comment.