snoire / ztags

ztags for tagbar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ztags

ztags for tagbar

How to build

$ zig build -Doptimize=ReleaseSafe

How to use

Add ztags to your PATH and put the following configuration to your .vimrc.

let g:tagbar_type_zig = {
    \ 'ctagstype': 'zig',
    \ 'kinds' : [
        \'import:imports',
        \'const:constants',
        \'var:variables',
        \'field:fields',
        \'error:errors',
        \'enum:enum:1',
        \'union:union:1',
        \'struct:struct:1',
        \'opaque:opaque:1',
        \'function:functions',
        \'comptime:comptimes',
        \'test:tests',
    \ ],
    \ 'sro' : '.',
    \ 'kind2scope' : {
        \ 'enum' : 'enum',
        \ 'union' : 'union',
        \ 'struct' : 'struct',
        \ 'opaque' : 'opaque',
    \ },
    \ 'ctagsbin' : 'ztags',
    \ 'ctagsargs' : ''
\ }

About

ztags for tagbar

License:MIT License


Languages

Language:Zig 100.0%