mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
perf(lsp): only redraw the windows containing LSP tokens
redraw! redraws the entire screen instead of just the windows with the buffer which were actually changed. I considered trying to calculating the range for the delta but it looks tricky. Could a follow-up.
This commit is contained in:
@@ -334,7 +334,8 @@ function STHighlighter:process_response(response, client, version)
|
||||
current_result.highlights = tokens_to_ranges(tokens, self.bufnr, client)
|
||||
current_result.namespace_cleared = false
|
||||
|
||||
api.nvim_command('redraw!')
|
||||
-- redraw all windows displaying buffer
|
||||
api.nvim__buf_redraw_range(self.bufnr, 0, -1)
|
||||
end
|
||||
|
||||
--- on_win handler for the decoration provider (see |nvim_set_decoration_provider|)
|
||||
|
Reference in New Issue
Block a user