aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/auevents.lua
diff options
context:
space:
mode:
authorswarn <swarn@users.noreply.github.com>2023-03-06 12:03:13 -0600
committerGitHub <noreply@github.com>2023-03-06 19:03:13 +0100
commit1cc23e1109ed88275df5c986c352f73b99a0301c (patch)
treefd393eb4eedf048e4e1ab09b0c39073c9cd3881e /src/nvim/auevents.lua
parent98f2df931ad8657f21124d8a6024967c5997fc99 (diff)
downloadrneovim-1cc23e1109ed88275df5c986c352f73b99a0301c.tar.gz
rneovim-1cc23e1109ed88275df5c986c352f73b99a0301c.tar.bz2
rneovim-1cc23e1109ed88275df5c986c352f73b99a0301c.zip
feat(lsp)!: add rule-based sem token highlighting (#22022)
feat(lsp)!: change semantic token highlighting Change the default highlights used, and add more highlights per token. Add an LspTokenUpdate event and a highlight_token function. :Inspect now shows any highlights applied by token highlighting rules, default or user-defined. BREAKING CHANGE: change the default highlight groups used by semantic token highlighting.
Diffstat (limited to 'src/nvim/auevents.lua')
-rw-r--r--src/nvim/auevents.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/auevents.lua b/src/nvim/auevents.lua
index a75ee3bbd5..aef08be820 100644
--- a/src/nvim/auevents.lua
+++ b/src/nvim/auevents.lua
@@ -72,6 +72,7 @@ return {
'InsertLeavePre', -- just before leaving Insert mode
'LspAttach', -- after an LSP client attaches to a buffer
'LspDetach', -- after an LSP client detaches from a buffer
+ 'LspTokenUpdate', -- after a visible LSP token is updated
'MenuPopup', -- just before popup menu is displayed
'ModeChanged', -- after changing the mode
'OptionSet', -- after setting any option
@@ -151,6 +152,7 @@ return {
DiagnosticChanged=true,
LspAttach=true,
LspDetach=true,
+ LspTokenUpdate=true,
RecordingEnter=true,
RecordingLeave=true,
Signal=true,