feat(lsp): custom omnifunc
This commit is contained in:
@@ -1,6 +1,35 @@
|
||||
require("onedark").setup({ style = "darker" })
|
||||
|
||||
local c = require("onedark.colors")
|
||||
|
||||
local completion_kind_colors = {
|
||||
Text = c.light_grey,
|
||||
Method = c.blue,
|
||||
Function = c.blue,
|
||||
Constructor = c.blue,
|
||||
Field = c.purple,
|
||||
Variable = c.purple,
|
||||
Property = c.cyan,
|
||||
Class = c.yellow,
|
||||
Interface = c.green,
|
||||
Struct = c.purple,
|
||||
Module = c.orange,
|
||||
Unit = c.green,
|
||||
Value = c.orange,
|
||||
Enum = c.purple,
|
||||
EnumMember = c.yellow,
|
||||
Keyword = c.cyan,
|
||||
Constant = c.orange,
|
||||
Snippet = c.red,
|
||||
Color = c.green,
|
||||
File = c.blue,
|
||||
Reference = c.orange,
|
||||
Folder = c.orange,
|
||||
Event = c.yellow,
|
||||
Operator = c.red,
|
||||
TypeParameter = c.red,
|
||||
}
|
||||
|
||||
local highlights = {
|
||||
["@string.special.url"] = { fg = "NONE", fmt = "NONE" },
|
||||
["@lsp.type.macro.gotmpl"] = { fg = "NONE", fmt = "NONE" },
|
||||
@@ -25,5 +54,10 @@ local highlights = {
|
||||
GitDirty = { fg = c.yellow },
|
||||
GitNew = { fg = c.green },
|
||||
}
|
||||
for kind, color in pairs(completion_kind_colors) do
|
||||
highlights["OwLspKind" .. kind] = { fg = color }
|
||||
end
|
||||
require("onedark").set_options("highlights", highlights)
|
||||
require("onedark").load()
|
||||
|
||||
vim.api.nvim_set_hl(0, "PmenuSel", { link = "Visual" })
|
||||
|
||||
Reference in New Issue
Block a user