mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Clojure support improvement
Added kinds: * namespace * definition * function * private function * macro * inline * multimethod definition * multimethod instance * definition (once) * struct * intern * namespace
This commit is contained in:
committed by
Jan Larres
parent
886af9ddc1
commit
c2ae24e7ab
@@ -182,6 +182,24 @@ function! tagbar#types#uctags#init(supported_types) abort
|
||||
\ 'enum' : 'g'
|
||||
\ }
|
||||
let types.cs = type_cs
|
||||
" Clojure {{{1
|
||||
let type_clojure = tagbar#prototypes#typeinfo#new()
|
||||
let type_clojure.ctagstype = 'clojure'
|
||||
let type_clojure.kinds = [
|
||||
\ {'short': 'n', 'long': 'namespace', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'd', 'long': 'definition', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'f', 'long': 'function', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'p', 'long': 'private function', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'm', 'long': 'macro', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'i', 'long': 'inline', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'a', 'long': 'multimethod definition', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'b', 'long': 'multimethod instance', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'c', 'long': 'definition (once)', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 's', 'long': 'struct', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'v', 'long': 'intern', 'fold': 0, 'stl': 1},
|
||||
\ {'short': 'n', 'long': 'namespace', 'fold': 0, 'stl': 1}
|
||||
\ ]
|
||||
let types.clojure = type_clojure
|
||||
" COBOL {{{1
|
||||
let type_cobol = tagbar#prototypes#typeinfo#new()
|
||||
let type_cobol.ctagstype = 'cobol'
|
||||
@@ -355,7 +373,6 @@ function! tagbar#types#uctags#init(supported_types) abort
|
||||
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1}
|
||||
\ ]
|
||||
let types.lisp = type_lisp
|
||||
let types.clojure = type_lisp
|
||||
" Lua {{{1
|
||||
let type_lua = tagbar#prototypes#typeinfo#new()
|
||||
let type_lua.ctagstype = 'lua'
|
||||
|
||||
Reference in New Issue
Block a user