nvim/lua/plugins/lsp/kind.lua

37 lines
642 B
Lua
Raw Permalink Normal View History

2022-10-09 22:40:29 +02:00
local M = {}
M.icons = {
Class = "",
Color = "",
Constant = "",
Constructor = "",
Enum = "",
EnumMember = "",
Field = "",
File = "",
Folder = "",
Function = "",
Interface = "",
Keyword = "",
Method = "ƒ ",
Module = "",
Property = "",
Snippet = "",
Struct = "",
Text = "",
Unit = "",
Value = "",
Variable = "",
}
function M.cmp_format()
return function(_entry, vim_item)
if M.icons[vim_item.kind] then
vim_item.kind = M.icons[vim_item.kind] .. vim_item.kind
end
return vim_item
end
end
return M