aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/semantic_tokens.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-10-20 16:44:39 -0700
committerGitHub <noreply@github.com>2024-10-20 16:44:39 -0700
commit86832dcd1922eee37acc26310f72aa70def1514b (patch)
treed9db0de1011d6b495e62e7a2a90d46de97f06996 /runtime/lua/vim/lsp/semantic_tokens.lua
parent8c2d45be77299d6eb70165697bc5c29898cdb25e (diff)
parent18b43c331d8a0ed87d7cbefe2a18543b8e4ad360 (diff)
downloadrneovim-86832dcd1922eee37acc26310f72aa70def1514b.tar.gz
rneovim-86832dcd1922eee37acc26310f72aa70def1514b.tar.bz2
rneovim-86832dcd1922eee37acc26310f72aa70def1514b.zip
Merge #30840 from justinmk/renamehl
Diffstat (limited to 'runtime/lua/vim/lsp/semantic_tokens.lua')
-rw-r--r--runtime/lua/vim/lsp/semantic_tokens.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/semantic_tokens.lua b/runtime/lua/vim/lsp/semantic_tokens.lua
index 2c7958b0d5..0f6e45c330 100644
--- a/runtime/lua/vim/lsp/semantic_tokens.lua
+++ b/runtime/lua/vim/lsp/semantic_tokens.lua
@@ -443,7 +443,7 @@ function STHighlighter:on_win(topline, botline)
vim.api.nvim_buf_set_extmark(self.bufnr, state.namespace, token.line, token.start_col, {
hl_group = hl_group,
end_col = token.end_col,
- priority = vim.highlight.priorities.semantic_tokens + delta,
+ priority = vim.hl.priorities.semantic_tokens + delta,
strict = false,
})
end
@@ -723,7 +723,7 @@ end
--- @inlinedoc
---
--- Priority for the applied extmark.
---- (Default: `vim.highlight.priorities.semantic_tokens + 3`)
+--- (Default: `vim.hl.priorities.semantic_tokens + 3`)
--- @field priority? integer
--- Highlight a semantic token.
@@ -752,7 +752,7 @@ function M.highlight_token(token, bufnr, client_id, hl_group, opts)
end
opts = opts or {}
- local priority = opts.priority or vim.highlight.priorities.semantic_tokens + 3
+ local priority = opts.priority or vim.hl.priorities.semantic_tokens + 3
vim.api.nvim_buf_set_extmark(bufnr, state.namespace, token.line, token.start_col, {
hl_group = hl_group,