diff --git a/lua/tabout/node.lua b/lua/tabout/node.lua index 340cfb2..9597bf1 100755 --- a/lua/tabout/node.lua +++ b/lua/tabout/node.lua @@ -42,7 +42,7 @@ M.get_node_at_cursor = function(dir) local filetype = vim.bo[0].filetype local ok, parser = pcall(vim.treesitter.get_parser, 0) if ok and parser then - parser:parse() + parser:parse(true) else if skip_notify[filetype] == nil then vim.notify("tabout.nvim: No parser found for filetype " .. filetype) @@ -50,7 +50,11 @@ M.get_node_at_cursor = function(dir) end return end - local tree = parser:tree_for_range(cursor_range) + -- Descend into injected languages (e.g.