-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtagbar.lua
40 lines (37 loc) · 777 Bytes
/
tagbar.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
return {
'majutsushi/tagbar',
desc = 'Outline - tagbar',
keymaps = { { 'n', '<leader>tb', ':TagbarToggle fj<CR>' } },
config = function(config)
for key, val in pairs(config.tagbar) do vim.g['tagbar_' .. key] = val end
end,
defaultConfig = {
'tagbar',
{
autofocus = 1,
case_insensitive = 1,
sort = 1,
type_go = {
ctagstype = 'go',
kinds = {
'p:package',
'i:imports:1',
'c:constants',
'v:variables',
't:types',
'n:interfaces',
'w:fields',
'e:embedded',
'm:methods',
'r:constructor',
'f:functions',
},
sro = '.',
kind2scope = { t = 'ctype', n = 'ntype' },
scope2kind = { ctype = 't', ntype = 'n' },
ctagsbin = 'gotags',
ctagsargs = '-sort -silent',
},
},
},
}