mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
feat(extras): added new git
extra with treesitter and issue/pr support
This commit is contained in:
parent
4d8d597a3f
commit
91a5fc10e6
1 changed files with 25 additions and 0 deletions
25
lua/lazyvim/plugins/extras/lang/git.lua
Normal file
25
lua/lazyvim/plugins/extras/lang/git.lua
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
return {
|
||||||
|
-- Treesitter git support
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = function(_, opts)
|
||||||
|
opts.ensure_installed = opts.ensure_installed or {}
|
||||||
|
vim.list_extend(opts.ensure_installed, { "git_config", "gitcommit", "git_rebase", "gitignore", "gitattributes" })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"nvim-cmp",
|
||||||
|
dependencies = {
|
||||||
|
{
|
||||||
|
"petertriho/cmp-git",
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
---@module 'cmp'
|
||||||
|
---@param opts cmp.ConfigSchema
|
||||||
|
opts = function(_, opts)
|
||||||
|
table.insert(opts.sources, { name = "git" })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue