fix(lsp.kind): drop prefix in highlight names

This commit is contained in:
2026-04-17 19:17:56 +02:00
parent a811cf8a6b
commit 0fbb738e78
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -67,12 +67,12 @@ function M.get(kind)
if not name or not M.ICONS[name] then
return nil, nil
end
return M.ICONS[name], "OwLspKind" .. name
return M.ICONS[name], "LspKind" .. name
end
local function register_highlights()
for name in pairs(M.ICONS) do
vim.api.nvim_set_hl(0, "OwLspKind" .. name, {
vim.api.nvim_set_hl(0, "LspKind" .. name, {
link = DEFAULT_HIGHLIGHTS[name] or "Pmenu",
default = true,
})
+1 -1
View File
@@ -55,7 +55,7 @@ local highlights = {
GitNew = { fg = c.green },
}
for kind, color in pairs(completion_kind_colors) do
highlights["OwLspKind" .. kind] = { fg = color }
highlights["LspKind" .. kind] = { fg = color }
end
require("onedark").set_options("highlights", highlights)
require("onedark").load()