mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Added interface and trait scopes
* Added interface and trait scopes that were missing from the previous commit. * Also restored fold status for classes kind to upstream value.
This commit is contained in:
parent
7ffec4539d
commit
6e1f1b8c85
|
@ -431,7 +431,7 @@ function! tagbar#types#uctags#init(supported_types) abort
|
|||
\ {'short' : 'd', 'long' : 'constant definitions', 'fold' : 0, 'stl' : 0},
|
||||
\ {'short' : 'i', 'long' : 'interfaces', 'fold' : 0, 'stl' : 1},
|
||||
\ {'short' : 't', 'long' : 'traits', 'fold' : 0, 'stl' : 1},
|
||||
\ {'short' : 'c', 'long' : 'classes', 'fold' : 1, 'stl' : 1},
|
||||
\ {'short' : 'c', 'long' : 'classes', 'fold' : 0, 'stl' : 1},
|
||||
\ {'short' : 'v', 'long' : 'variables', 'fold' : 1, 'stl' : 0},
|
||||
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
|
||||
\ {'short' : 'j', 'long' : 'javascript functions', 'fold' : 0, 'stl' : 1},
|
||||
|
@ -439,11 +439,15 @@ function! tagbar#types#uctags#init(supported_types) abort
|
|||
let type_php.sro = '\\\\'
|
||||
let type_php.kind2scope = {
|
||||
\ 'c' : 'class',
|
||||
\ 'n' : 'namespace'
|
||||
\ 'n' : 'namespace',
|
||||
\ 'i' : 'interface',
|
||||
\ 't' : 'trait',
|
||||
\ }
|
||||
let type_php.scope2kind = {
|
||||
\ 'class' : 'c',
|
||||
\ 'namespace' : 'n'
|
||||
\ 'class' : 'c',
|
||||
\ 'namespace' : 'n',
|
||||
\ 'interface' : 'i',
|
||||
\ 'trait' : 't',
|
||||
\ }
|
||||
let types.php = type_php
|
||||
" Python {{{1
|
||||
|
|
Loading…
Reference in New Issue
Block a user