diff --git a/lua/nvim-biscuits/init.lua b/lua/nvim-biscuits/init.lua index 70c68a5..7b0839c 100644 --- a/lua/nvim-biscuits/init.lua +++ b/lua/nvim-biscuits/init.lua @@ -68,6 +68,9 @@ nvim_biscuits.decorate_nodes = function(bufnr, lang) local children = {} local has_nodes = true + vim.api.nvim_buf_clear_namespace(bufnr, biscuit_highlight_group, + 0, -1) + while has_nodes do for index, node in ipairs(nodes) do children = utils.merge_arrays(children,