mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
fix: update interface following languagetree merge (#687)
This commit is contained in:
parent
3c07232d07
commit
808765a6c8
11 changed files with 16 additions and 204 deletions
|
|
@ -40,7 +40,7 @@ function M.get_indent(lnum)
|
|||
local parser = parsers.get_parser()
|
||||
if not parser or not lnum then return -1 end
|
||||
|
||||
local node = get_node_at_line(parser:parse():root(), lnum-1)
|
||||
local node = get_node_at_line(parser:parse()[1]:root(), lnum-1)
|
||||
local indent_queries = get_indents(vim.api.nvim_get_current_buf())
|
||||
local indents = indent_queries.indents
|
||||
local branches = indent_queries.branches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue