commit 4385f8a7430f8181189f385a6cfb4e295d30b21e
parent 32ef36cb8739b056cfaed77f7ebaad9335d64624
Author: jdrouhard <john@drouhard.dev>
Date: Tue, 7 Mar 2023 10:35:12 -0600
fix(lsp): change LspTokenUpdate to use buffer instead of pattern (#22559)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/lua/vim/lsp/semantic_tokens.lua b/runtime/lua/vim/lsp/semantic_tokens.lua
@@ -435,7 +435,7 @@ function STHighlighter:on_win(topline, botline)
token.marked = true
api.nvim_exec_autocmds('LspTokenUpdate', {
- pattern = vim.api.nvim_buf_get_name(self.bufnr),
+ buffer = self.bufnr,
modeline = false,
data = {
token = token,