27 lines
527 B
Lua
27 lines
527 B
Lua
return {
|
|
|
|
{
|
|
'hrsh7th/nvim-cmp',
|
|
optional = true,
|
|
dependencies = { 'petertriho/cmp-git' },
|
|
},
|
|
|
|
{
|
|
'petertriho/cmp-git',
|
|
opts = {},
|
|
config = function()
|
|
local cmp = require('cmp')
|
|
---@diagnostic disable-next-line: missing-fields
|
|
cmp.setup.filetype('gitcommit', {
|
|
sources = cmp.config.sources({
|
|
{ name = 'git', priority = 50 },
|
|
{ name = 'path', priority = 40 },
|
|
}, {
|
|
{ name = 'buffer', priority = 50 },
|
|
{ name = 'emoji', insert = true, priority = 20 },
|
|
}),
|
|
})
|
|
end,
|
|
},
|
|
}
|