mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
Removes all support (and tests) for the parser category "maintained", as this is no longer a useful category. BREAKING CHANGE: replace `ensure_installed='maintained'` by an explicit list of parsers, or use `'all'` (not recommended).
27 lines
1.1 KiB
VimL
27 lines
1.1 KiB
VimL
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'], "\n")
|
|
endfunction
|
|
|
|
function! nvim_treesitter#installed_parsers(arglead, cmdline, cursorpos) abort
|
|
return join(luaeval("require'nvim-treesitter.info'.installed_parsers()") + ['all'], "\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
|