From 49aac7fb6a8b6e29da69537911f6978c38e75f6e Mon Sep 17 00:00:00 2001
From: listout <listout@protonmail.com>
Date: Wed, 15 Feb 2023 22:42:25 +0530
Subject: nvim: plugins: git souce for nvim-cmp

Signed-off-by: listout <listout@protonmail.com>
---
 lua/plugins/cmp.lua | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

(limited to 'lua/plugins/cmp.lua')

diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua
index 25bce4b..68ca028 100644
--- a/lua/plugins/cmp.lua
+++ b/lua/plugins/cmp.lua
@@ -102,14 +102,19 @@ cmp.setup {
 		{ name = 'nvim_lua' },
 	}),
 }
+
 -- Set configuration for specific filetype.
-cmp.setup.filetype('gitcommit', {
-	sources = cmp.config.sources({
-		{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
-	}, {
-		{ name = 'buffer' },
-	})
+require("cmp").setup({
+	sources = {
+		{ name = "git" },
+		{ name = "buffer" },
+		{ name = "path" },
+		-- more sources
+	}
 })
+
+require("cmp_git").setup()
+
 -- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
 require'cmp'.setup.cmdline('/', {
 	completion = { autocomplete = false },
-- 
cgit v1.2.3