fix(lsp.kind): drop prefix in highlight names
This commit is contained in:
+2
-2
@@ -67,12 +67,12 @@ function M.get(kind)
|
|||||||
if not name or not M.ICONS[name] then
|
if not name or not M.ICONS[name] then
|
||||||
return nil, nil
|
return nil, nil
|
||||||
end
|
end
|
||||||
return M.ICONS[name], "OwLspKind" .. name
|
return M.ICONS[name], "LspKind" .. name
|
||||||
end
|
end
|
||||||
|
|
||||||
local function register_highlights()
|
local function register_highlights()
|
||||||
for name in pairs(M.ICONS) do
|
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",
|
link = DEFAULT_HIGHLIGHTS[name] or "Pmenu",
|
||||||
default = true,
|
default = true,
|
||||||
})
|
})
|
||||||
|
|||||||
+1
-1
@@ -55,7 +55,7 @@ local highlights = {
|
|||||||
GitNew = { fg = c.green },
|
GitNew = { fg = c.green },
|
||||||
}
|
}
|
||||||
for kind, color in pairs(completion_kind_colors) do
|
for kind, color in pairs(completion_kind_colors) do
|
||||||
highlights["OwLspKind" .. kind] = { fg = color }
|
highlights["LspKind" .. kind] = { fg = color }
|
||||||
end
|
end
|
||||||
require("onedark").set_options("highlights", highlights)
|
require("onedark").set_options("highlights", highlights)
|
||||||
require("onedark").load()
|
require("onedark").load()
|
||||||
|
|||||||
Reference in New Issue
Block a user