summaryrefslogtreecommitdiff
path: root/lua/plugins/cmp.lua
diff options
context:
space:
mode:
authorlistout <listout@protonmail.com>2023-02-17 11:55:24 +0530
committerlistout <listout@protonmail.com>2023-02-17 11:55:24 +0530
commitd2fdecf5ab37b2f2b9ec5456d9c0fc80f075ca70 (patch)
treeb19629c0c415740fee5fea4932c7bbfdc32b693d /lua/plugins/cmp.lua
parent49aac7fb6a8b6e29da69537911f6978c38e75f6e (diff)
Revert "nvim: plugins: git souce for nvim-cmp"
This reverts commit be9f5f7278658e70ad1294c77acb66d021218707.
Diffstat (limited to 'lua/plugins/cmp.lua')
-rw-r--r--lua/plugins/cmp.lua17
1 files changed, 6 insertions, 11 deletions
diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua
index 68ca028..25bce4b 100644
--- a/lua/plugins/cmp.lua
+++ b/lua/plugins/cmp.lua
@@ -102,19 +102,14 @@ cmp.setup {
{ name = 'nvim_lua' },
}),
}
-
-- Set configuration for specific filetype.
-require("cmp").setup({
- sources = {
- { name = "git" },
- { name = "buffer" },
- { name = "path" },
- -- more sources
- }
+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_git").setup()
-
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
require'cmp'.setup.cmdline('/', {
completion = { autocomplete = false },