From 7ab210668538bfdee02b0c0570d65013702e4ffc Mon Sep 17 00:00:00 2001 From: Shubham Pawar Date: Thu, 2 Jan 2025 08:16:43 +0530 Subject: [PATCH] fix: cmp ordering settings --- .config/lazygit/state.yml | 1 + .config/nvim/lua/plugins/nvim-cmp.lua | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/lazygit/state.yml b/.config/lazygit/state.yml index 4c070fb..db4e726 100644 --- a/.config/lazygit/state.yml +++ b/.config/lazygit/state.yml @@ -1,6 +1,7 @@ lastupdatecheck: 0 recentrepos: - /home/shubham/Documents/dotfiles + - /home/shubham/Documents/Programming/WebDev/social-media-manager-app - /home/shubham/Documents/Programming/WebDev/invoice-genrator-nextjs - /home/shubham/Documents/Programming/WebDev/invoice-generator-sveltekit - /home/shubham/Documents/Programming/WebDev/vue3-chrome-ai diff --git a/.config/nvim/lua/plugins/nvim-cmp.lua b/.config/nvim/lua/plugins/nvim-cmp.lua index 089f171..9abef46 100644 --- a/.config/nvim/lua/plugins/nvim-cmp.lua +++ b/.config/nvim/lua/plugins/nvim-cmp.lua @@ -285,14 +285,12 @@ return { comparators = { deprio(types.lsp.CompletionItemKind.Text), compare.exact, - compare.offset, - compare.recently_used, compare.score, + compare.offset, compare.kind, + compare.recently_used, compare.length, compare.locality, - compare.order, - compare.sort_text, }, }, ---@diagnostic disable-next-line: missing-fields