Skip to content

Commit

Permalink
feat: add default highlights for kind
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Jul 14, 2024
1 parent fcba252 commit 7e3d4df
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions lua/neocomplete/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,38 @@ local hl = function(...)
vim.api.nvim_set_hl(0, ...)
end

local kinds = {
Text = "@string",
Method = "@function.method",
Function = "@function",
Constructor = "@constructor",
Field = "@property",
Variable = "@variable",
Class = "@type",
Interface = "@type",
Module = "@module",
Property = "@property",
Unit = "@constant",
Value = "@boolean",
Enum = "@constant",
Keyword = "@keyword",
Snippet = "@keyword",
Color = "@string.special",
File = "@string.special.url",
Reference = "@property",
Folder = "@string.special.url",
EnumMember = "@variable.member",
Constant = "@constant",
Struct = "@type",
Event = "@string.special",
Operator = "@operator",
TypeParameter = "@type",
}

for name, group in pairs(kinds) do
hl(string.format("@neocomplete.type.%s", name), { link = group, default = true })
end

hl("@neocomplete", { link = "Normal", default = true })
hl("@neocomplete.type", { link = "Normal", default = true })
hl("@neocomplete.selected", { link = "Visual", default = true })
Expand Down

0 comments on commit 7e3d4df

Please sign in to comment.