[nvim] refactor: remove icons from completion
This commit is contained in:
parent
13ddf74c92
commit
b16f48b5b3
@ -18,33 +18,7 @@ end
|
||||
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
|
||||
|
||||
-- Custom item icons
|
||||
local icons = {
|
||||
Class = "",
|
||||
Color = "",
|
||||
Constant = "µ",
|
||||
Constructor = "",
|
||||
Enum = "",
|
||||
EnumMember = "",
|
||||
Event = "",
|
||||
Field = "",
|
||||
File = "",
|
||||
Folder = "",
|
||||
Function = "",
|
||||
Keyword = "",
|
||||
Interface = "",
|
||||
Method = "",
|
||||
Module = "",
|
||||
Operator = "",
|
||||
Property = "",
|
||||
Reference = "",
|
||||
Snippet = "",
|
||||
Struct = "",
|
||||
Text = "",
|
||||
TypeParameter = "",
|
||||
Unit = "",
|
||||
Value = "",
|
||||
Variable = "",
|
||||
}
|
||||
local icons = { }
|
||||
|
||||
cmp.setup {
|
||||
completion = {
|
||||
@ -62,8 +36,6 @@ cmp.setup {
|
||||
},
|
||||
formatting = {
|
||||
format = function(entry, vim_item)
|
||||
vim_item.kind = string.format("%s %s", icons[vim_item.kind],
|
||||
vim_item.kind)
|
||||
vim_item.menu = ({
|
||||
nvim_lsp = "[lsp]",
|
||||
nvim_lua = "[nvim]",
|
||||
|
Reference in New Issue
Block a user