Running tagbar with airline broke TagbarCurrent (#894)
Some checks failed
Check / check (exuberant-ctags, nvim) (push) Has been cancelled
Check / check (exuberant-ctags, vim) (push) Has been cancelled
Check / check (universal-ctags, nvim) (push) Has been cancelled
Check / check (universal-ctags, vim) (push) Has been cancelled
Vint / vint (push) Has been cancelled

- It seems that airline initialize with uctags kinds table but
after that call InitTypes but there has wrong values.

Signed-off-by: <rampxxxx@gmail.com>
Co-authored-by: Javier Garcia <javier.martin.garcia@ibm.com>
This commit is contained in:
Javier Garcia 2024-11-07 16:09:38 +01:00 committed by GitHub
parent 1c5a358f0b
commit 4a1c46d8dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = {