2020-10-09 19:08:44 +02:00
|
|
|
function! nvim_treesitter#statusline(...) abort
|
|
|
|
|
return luaeval("require'nvim-treesitter'.statusline(_A)", get(a:, 1, {}))
|
2020-10-09 13:43:34 +02:00
|
|
|
endfunction
|
|
|
|
|
|
2020-09-04 12:44:19 -05:00
|
|
|
function! nvim_treesitter#foldexpr() abort
|
2020-05-25 10:26:29 +02:00
|
|
|
return luaeval(printf('require"nvim-treesitter.fold".get_fold_indic(%d)', v:lnum))
|
|
|
|
|
endfunction
|
2020-09-04 12:44:19 -05:00
|
|
|
|
|
|
|
|
function! nvim_treesitter#installable_parsers(arglead, cmdline, cursorpos) abort
|
2022-04-16 11:41:00 +02:00
|
|
|
return join(luaeval("require'nvim-treesitter.parsers'.available_parsers()") + ['all'], "\n")
|
2020-09-04 12:44:19 -05:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
function! nvim_treesitter#installed_parsers(arglead, cmdline, cursorpos) abort
|
2022-04-16 11:41:00 +02:00
|
|
|
return join(luaeval("require'nvim-treesitter.info'.installed_parsers()") + ['all'], "\n")
|
2020-09-04 12:44:19 -05:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
function! nvim_treesitter#available_modules(arglead, cmdline, cursorpos) abort
|
2020-09-05 10:20:31 -05:00
|
|
|
return join(luaeval("require'nvim-treesitter.configs'.available_modules()"), "\n")
|
2020-09-04 12:44:19 -05:00
|
|
|
endfunction
|
2020-10-13 01:02:30 +02:00
|
|
|
|
2021-04-07 16:38:32 +02:00
|
|
|
function! nvim_treesitter#available_query_groups(arglead, cmdline, cursorpos) abort
|
|
|
|
|
return join(luaeval("require'nvim-treesitter.query'.available_query_groups()"), "\n")
|
|
|
|
|
endfunction
|
|
|
|
|
|
2020-10-13 01:02:30 +02:00
|
|
|
function! nvim_treesitter#indent() abort
|
|
|
|
|
return luaeval(printf('require"nvim-treesitter.indent".get_indent(%d)', v:lnum))
|
|
|
|
|
endfunction
|