feat(providers): Inital COC support

Closes #68
Still needs support for code actions/hover/rename etc
This commit is contained in:
simrat39
2021-10-06 12:58:44 -07:00
parent a0d563172d
commit 042c8466a2
6 changed files with 46 additions and 21 deletions

View File

@@ -12,6 +12,10 @@ M.kinds = {
function M.icon_from_kind(kind)
local symbols = config.options.symbols
if type(kind) == 'string' then
return symbols[kind].icon
end
-- If the kind is higher than the available ones then default to 'Object'
if kind > #M.kinds then kind = 19 end
return symbols[M.kinds[kind]].icon