Update cmp symbols

This commit is contained in:
Shockwave 2024-11-10 11:21:09 +08:00
parent 65e40c9ab7
commit 94aefb1981
1 changed files with 58 additions and 28 deletions

View File

@ -37,35 +37,65 @@ cmp.setup({
formatting = {
fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item)
-- local lspkind_icons = {
-- 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 = " ",
-- Robot = "",
-- Smiley = "ﲃ",
-- Note = " ",
-- }
local lspkind_icons = {
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 = "",
Robot = "",
Smiley = "",
Note = "",
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 = ' 󰅲 ',
Smiley = "",
Note = "🗈",
}
local meta_type = vim_item.kind