Added base folke setup
This commit is contained in:
36
lua/plugins/lsp/kind.lua
Normal file
36
lua/plugins/lsp/kind.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
Reference in New Issue
Block a user