start indent module

This commit is contained in:
kiyan42 2020-10-13 01:02:30 +02:00 committed by Kiyan Yazdani
parent a1de79e93a
commit 36b5f6f075
3 changed files with 79 additions and 0 deletions

View file

@ -17,3 +17,7 @@ endfunction
function! nvim_treesitter#available_modules(arglead, cmdline, cursorpos) abort
return join(luaeval("require'nvim-treesitter.configs'.available_modules()"), "\n")
endfunction
function! nvim_treesitter#indent() abort
return luaeval(printf('require"nvim-treesitter.indent".get_indent(%d)', v:lnum))
endfunction