fix(nvim): cmp_git source config

This commit is contained in:
winston 2023-07-19 21:43:34 +02:00
parent f8c871a450
commit 013871c90f
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -95,16 +95,17 @@ cmp.setup({
},
})
cmp.setup.filetype({ "gitcommit", "NeogitCommitMessage" }, {
local git_ft = { "gitcommit", "NeogitCommitMessage", "Octo" }
cmp.setup.filetype(git_ft, {
sources = cmp.config.sources({
{ name = "cmp_git" },
{ name = "git" },
}, {
{ name = "buffer" },
}),
})
require("cmp_git").setup({
filetypes = { "gitcommit", "NeogitCommitMessage", "Octo" },
filetypes = git_ft,
enableRemoteUrlRewrites = true,
})
cmp.setup.cmdline({ "/", "?" }, {