let g:ts_test_path = expand(":p:h:h") let g:has_ts = v:false func! TSTest() if g:has_ts return end " TODO: module! lua theparser = vim.treesitter.create_parser(0) lua require'treesitter_demo' let g:has_ts = v:true endfunc func! TSCursor() " disable matchparen NoMatchParen call TSTest() au CursorMoved lua ts_cursor() au CursorMovedI lua ts_cursor() map (ts-expand) lua ts_expand_node() endfunc func! TSSyntax() " disable matchparen set syntax= call TSTest() lua ts_syntax() endfunc command! TSTest call TSTest() command! TSCursor call TSCursor() command! TSSyntax call TSSyntax()