treesitter: redraw on changed query

This commit is contained in:
Björn Linse 2020-02-22 19:02:08 +01:00
parent 78ec95ce7d
commit 08af82b9cb

View File

@ -69,6 +69,8 @@ function TSHighlighter:set_query(query)
end end
self.id_map[i] = hl self.id_map[i] = hl
end end
a.nvim__buf_redraw_range(self.buf, 0, a.nvim_buf_line_count(self.buf))
end end
function TSHighlighter:on_change(changes) function TSHighlighter:on_change(changes)