Files
LazyVim/lua/lazyvim/plugins/extras/lang/git.lua

23 lines
544 B
Lua

return {
recommended = {
ft = { "gitcommit", "gitconfig", "gitrebase", "gitignore", "gitattributes" },
},
-- Treesitter git support
{
"nvim-treesitter/nvim-treesitter",
opts = { ensure_installed = { "git_config", "gitcommit", "git_rebase", "gitignore", "gitattributes" } },
},
{
"nvim-cmp",
dependencies = {
{ "petertriho/cmp-git", opts = {} },
},
---@module 'cmp'
---@param opts cmp.ConfigSchema
opts = function(_, opts)
table.insert(opts.sources, { name = "git" })
end,
},
}