fix(treesitter): inspect-tree remember opts on buf change

This commit is contained in:
altermo authored and Lewis Russell committed 2024-02-04 15:53:29 +00:00
1 parent 1d5f86f694
commit 6c8387067d
1 file changed
+2
+2
View File
@@ -460,7 +460,9 @@ function M.inspect_tree(opts)
return true
end
local treeview_opts = treeview.opts
treeview = assert(TSTreeView:new(buf, opts.lang))
treeview.opts = treeview_opts
treeview:draw(b)
end,
})