From 555467a98c8ef8496edb2847c28e09717cb9f77a Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 20 Dec 2023 09:45:22 -0600 Subject: [PATCH] fix(nvim): ensure cmp git integrations are setup and working --- dots/.config/nvim/lua/plugins/configs/cmp.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/cmp.lua b/dots/.config/nvim/lua/plugins/configs/cmp.lua index 0032b95e..853457bd 100644 --- a/dots/.config/nvim/lua/plugins/configs/cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/cmp.lua @@ -7,7 +7,13 @@ return { "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-cmdline", "hrsh7th/cmp-emoji", - "petertriho/cmp-git", + { + "petertriho/cmp-git", + dependencies = { + "nvim-lua/plenary.nvim" + }, + opts = {} + }, "hrsh7th/cmp-nvim-lsp-document-symbol", "hrsh7th/cmp-calc", "davidsierradz/cmp-conventionalcommits", @@ -349,14 +355,14 @@ return { -- Git Commit Completions cmp.setup.filetype("gitcommit", { sources = standard_sources({ - { name = "conventionalcommits", priotity = 99 }, - { name = "git", priority = 98 } + { name = "git", priority = 99 }, + { name = "conventionalcommits", priority = 98 } }), }) cmp.setup.filetype("octo", { sources = standard_sources({ - { name = "git", priority = 98 } + { name = "git", priority = 99 } }), })