From 7e728701e8bb4af40ed0de5d21111bd7a9d57205 Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Thu, 28 Dec 2023 18:50:42 +0000 Subject: [PATCH] how did i not know nvim-cmp has grouping --- vim/.vim/lua/plugins/cmp.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vim/.vim/lua/plugins/cmp.lua b/vim/.vim/lua/plugins/cmp.lua index 04a2048..2b600d8 100644 --- a/vim/.vim/lua/plugins/cmp.lua +++ b/vim/.vim/lua/plugins/cmp.lua @@ -78,12 +78,15 @@ return { { name = "luasnip", priority = 8 }, { name = "nvim_lsp", priority = 7 }, { name = "async_path" }, - { name = "nerdfont" }, - { name = "treesitter" }, - { name = "buffer" }, - { name = "calc" }, { name = "crates" }, + { name = "calc" }, + }, { -- symbols/icons group + { name = "nerdfont" }, { name = "emoji" }, + }, { -- fallback A + { name = "treesitter" }, + }, { -- fallback B + { name = "buffer" }, }, conditionalSources)), sorting = { @@ -97,7 +100,7 @@ return { -- compare.scopes, -- what? -- compare.sort_text, -- compare.exact, - -- compare.kind, + compare.kind, -- compare.length, -- useless }, },