From fd18a613f9e40287b7c6ffe36666e13140c11ffb Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 13 May 2023 07:14:50 -0500 Subject: [PATCH] fix(nvim): ensure path completions exist in cmp --- dots/.config/nvim/lua/plugins/configs/_cmp.lua | 11 ++++++----- dots/.config/nvim/lua/plugins/plugins.lua | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/_cmp.lua b/dots/.config/nvim/lua/plugins/configs/_cmp.lua index c848884b..456e984a 100755 --- a/dots/.config/nvim/lua/plugins/configs/_cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/_cmp.lua @@ -129,8 +129,8 @@ cmp.setup({ end, { "i", "s" }), }, sources = cmp.config.sources({ - { name = "nvim_lsp", priority = 11 }, - { name = "luasnip", priority = 10 }, -- For luasnip users. + { name = "nvim_lsp", priority = 11 }, + { name = "luasnip", priority = 10 }, -- For luasnip users. { name = "fuzzy_buffer", priority = 9, keyword_length = 3, max_item_count = 10 }, { name = "rg", @@ -138,11 +138,12 @@ cmp.setup({ keyword_length = 3, max_item_count = 10, }, - { name = "zsh", priority = 5 }, + { name = "async_path", priority = 6 }, + { name = "zsh", priority = 5 }, { name = "emoji", keyword_length = 2 }, { name = "neorg" }, { name = "calc" }, - { name = "npm", keyword_length = 2 }, + { name = "npm", keyword_length = 2 }, { name = "spell", keyword_length = 2 }, }), sorting = { @@ -164,7 +165,7 @@ cmp.setup({ cmp.setup.filetype("gitcommit", { sources = cmp.config.sources({ { name = "conventionalcommits", priority = 20 }, - { name = "emoji", keyword_length = 2 }, + { name = "emoji", keyword_length = 2 }, }), }) diff --git a/dots/.config/nvim/lua/plugins/plugins.lua b/dots/.config/nvim/lua/plugins/plugins.lua index e0bb0774..a385770d 100755 --- a/dots/.config/nvim/lua/plugins/plugins.lua +++ b/dots/.config/nvim/lua/plugins/plugins.lua @@ -239,6 +239,7 @@ lazy.setup({ "lukas-reineke/cmp-rg", "onsails/lspkind.nvim", "f3fora/cmp-spell", + "FelipeLema/cmp-async-path", -- Snippets { "L3MON4D3/LuaSnip",