mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:40:05 +08:00
28 lines
1.1 KiB
VimL
Vendored
28 lines
1.1 KiB
VimL
Vendored
function! nvim_treesitter#statusline(...) abort
|
|
return luaeval("require'nvim-treesitter'.statusline(_A)", get(a:, 1, {}))
|
|
endfunction
|
|
|
|
function! nvim_treesitter#foldexpr() abort
|
|
return luaeval(printf('require"nvim-treesitter.fold".get_fold_indic(%d)', v:lnum))
|
|
endfunction
|
|
|
|
function! nvim_treesitter#installable_parsers(arglead, cmdline, cursorpos) abort
|
|
return join(luaeval("require'nvim-treesitter.parsers'.available_parsers()") + ['all', 'maintained'], "\n")
|
|
endfunction
|
|
|
|
function! nvim_treesitter#installed_parsers(arglead, cmdline, cursorpos) abort
|
|
return join(luaeval("require'nvim-treesitter.info'.installed_parsers()") + ['all', 'maintained'], "\n")
|
|
endfunction
|
|
|
|
function! nvim_treesitter#available_modules(arglead, cmdline, cursorpos) abort
|
|
return join(luaeval("require'nvim-treesitter.configs'.available_modules()"), "\n")
|
|
endfunction
|
|
|
|
function! nvim_treesitter#available_query_groups(arglead, cmdline, cursorpos) abort
|
|
return join(luaeval("require'nvim-treesitter.query'.available_query_groups()"), "\n")
|
|
endfunction
|
|
|
|
function! nvim_treesitter#indent() abort
|
|
return luaeval(printf('require"nvim-treesitter.indent".get_indent(%d)', v:lnum))
|
|
endfunction
|