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 = { formatting = {
fields = { "kind", "abbr", "menu" }, fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item) 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 = { local lspkind_icons = {
Text = "", Text = ' 󰉿 ',
Method = "", Method = ' 󰆧 ',
Function = "", Function = ' 󰡱 ',
Constructor = "", Constructor = '',
Field = "", Field = ' 󰜢 ',
Variable = "", Variable = ' 󰀫 ',
Class = "", Class = ' 󰠱 ',
Interface = "", Interface = '',
Module = "", Module = '',
Property = "", Property = ' 󰜢 ',
Unit = "", Unit = ' 󰑭 ',
Value = "", Value = ' 󰎠 ',
Enum = "", Enum = '',
Keyword = "", Keyword = ' 󰌋 ',
Snippet = "", Snippet = '',
Color = "", Color = ' 󰏘 ',
File = "", File = ' 󰈙 ',
Reference = "", Reference = ' 󰈇 ',
Folder = "", Folder = ' 󰉋 ',
EnumMember = "", EnumMember = '',
Constant = "", Constant = ' 󰏿 ',
Struct = "", Struct = ' 󰙅 ',
Event = "", Event = '',
Operator = "", Operator = ' 󰆕 ',
TypeParameter = "", TypeParameter = ' 󰅲 ',
Robot = "", Smiley = "",
Smiley = "", Note = "🗈",
Note = "",
} }
local meta_type = vim_item.kind local meta_type = vim_item.kind