X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/71d8ed08696bb8e807b1d1518c55fd5885ed8c98..7d854464d9b1bd386b0eaf25f38ac3b96dd1fc18:/nvim/lua/plugins/lang/git.lua diff --git a/nvim/lua/plugins/lang/git.lua b/nvim/lua/plugins/lang/git.lua new file mode 100644 index 0000000..a45d4da --- /dev/null +++ b/nvim/lua/plugins/lang/git.lua @@ -0,0 +1,19 @@ +return { + -- Treesitter git support + { "nvim-treesitter/nvim-treesitter", + opts = { ensure_installed = { "git_config", "gitcommit", "git_rebase", "gitignore", "gitattributes" } }, + }, + + { + "hrsh7th/nvim-cmp", + optional = true, + dependencies = { + { "petertriho/cmp-git", opts = {} }, + }, + ---@module 'cmp' + ---@param opts cmp.ConfigSchema + opts = function(_, opts) + table.insert(opts.sources, { name = "git" }) + end, + }, +}