18 lines
421 B
Lua
18 lines
421 B
Lua
local cmp = require("cmp")
|
|
|
|
return {
|
|
"hrsh7th/nvim-cmp",
|
|
dependencies = {
|
|
"petertriho/cmp-git",
|
|
opts = {},
|
|
},
|
|
opts = function(_, opts)
|
|
cmp.setup.filetype("gitcommit", {
|
|
sources = cmp.config.sources({
|
|
{ name = "git" }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
|
|
}, {
|
|
{ name = "buffer" },
|
|
}),
|
|
})
|
|
end,
|
|
}
|