From 5c520cf48dca158ca00a6ab2808f775b97405dc3 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 25 Sep 2023 15:49:05 -0500 Subject: [PATCH] feat(nvim): add cmp git support for octo and gitcommits --- dots/.config/nvim/lua/plugins/configs/cmp.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/cmp.lua b/dots/.config/nvim/lua/plugins/configs/cmp.lua index 7b396ce8..1fff07cb 100644 --- a/dots/.config/nvim/lua/plugins/configs/cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/cmp.lua @@ -7,6 +7,7 @@ return { "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-cmdline", "hrsh7th/cmp-emoji", + "petertriho/cmp-git", "hrsh7th/cmp-nvim-lsp-document-symbol", "hrsh7th/cmp-calc", "davidsierradz/cmp-conventionalcommits", @@ -323,7 +324,14 @@ return { -- Git Commit Completions cmp.setup.filetype("gitcommit", { sources = standard_sources({ - { name = "conventionalcommits", priority = 99 }, + { name = "conventionalcommits" }, + { name = "git" } + }), + }) + + cmp.setup.filetype("octo", { + sources = standard_sources({ + { name = "git" } }), })