48 lines
964 B
Lua
48 lines
964 B
Lua
local ok, lspkind = pcall(require, "lspkind")
|
|
if (not ok) then return end
|
|
|
|
lspkind.init({
|
|
-- enables text annotations
|
|
--
|
|
-- default: true
|
|
mode = 'symbol',
|
|
|
|
-- default symbol map
|
|
-- can be either 'default' (requires nerd-fonts font) or
|
|
-- 'codicons' for codicon preset (requires vscode-codicons font)
|
|
--
|
|
-- default: 'default'
|
|
preset = 'codicons',
|
|
|
|
-- override preset symbols
|
|
--
|
|
-- default: {}
|
|
symbol_map = {
|
|
Text = "",
|
|
Method = "",
|
|
Function = "",
|
|
Constructor = "",
|
|
Field = "ﰠ",
|
|
Variable = "",
|
|
Class = "ﴯ",
|
|
Interface = "",
|
|
Module = "",
|
|
Property = "ﰠ",
|
|
Unit = "塞",
|
|
Value = "",
|
|
Enum = "",
|
|
Keyword = "",
|
|
Snippet = "",
|
|
Color = "",
|
|
File = "",
|
|
Reference = "",
|
|
Folder = "",
|
|
EnumMember = "",
|
|
Constant = "",
|
|
Struct = "פּ",
|
|
Event = "",
|
|
Operator = "",
|
|
TypeParameter = ""
|
|
},
|
|
})
|