]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/lang/git.lua
lazyvim: absorb all langs
[dotfiles.git] / 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 (file)
index 0000000..a45d4da
--- /dev/null
@@ -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,
+  },
+}