diff options
author | Philippe Richard <[email protected]> | 2022-10-02 23:48:23 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-02 23:48:23 -0400 |
commit | 8767a17b5e6087153494a5cd30e5ae0c5165c9af (patch) | |
tree | 40f57839009330a85471662acf12f87f6e46017d /lua/lvim/core/cmp.lua | |
parent | 228658b02e083d0294b737b39275f3b62c007b94 (diff) |
feat: move icons to a single icons file (#3115)
Diffstat (limited to 'lua/lvim/core/cmp.lua')
-rw-r--r-- | lua/lvim/core/cmp.lua | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/lua/lvim/core/cmp.lua b/lua/lvim/core/cmp.lua index a6362aa7..319bdc64 100644 --- a/lua/lvim/core/cmp.lua +++ b/lua/lvim/core/cmp.lua @@ -141,33 +141,7 @@ M.config = function() formatting = { fields = { "kind", "abbr", "menu" }, max_width = 0, - kind_icons = { - Class = "ī ", - Color = "îĢ ", - Constant = "ī˛ ", - Constructor = "īĨ ", - Enum = "īŠ", - EnumMember = "ī
", - Event = "ī§ ", - Field = "î ", - File = "ī", - Folder = "ī ", - Function = "ī ", - Interface = "ī°Ž ", - Keyword = "ī ", - Method = "î ", - Module = "ī¨ ", - Operator = "ī", - Property = "î¤ ", - Reference = "ī ", - Snippet = "ī ", - Struct = "ī ", - Text = "īž ", - TypeParameter = "ī ", - Unit = "īĨŦ", - Value = "īĸ ", - Variable = "īĻ ", - }, + kind_icons = lvim.icons.kind, source_names = { nvim_lsp = "(LSP)", emoji = "(Emoji)", @@ -189,7 +163,7 @@ M.config = function() format = function(entry, vim_item) local max_width = lvim.builtin.cmp.formatting.max_width if max_width ~= 0 and #vim_item.abbr > max_width then - vim_item.abbr = string.sub(vim_item.abbr, 1, max_width - 1) .. "âĻ" + vim_item.abbr = string.sub(vim_item.abbr, 1, max_width - 1) .. lvim.icons.ui.Ellipsis end if lvim.use_icons then vim_item.kind = lvim.builtin.cmp.formatting.kind_icons[vim_item.kind] |