]> git.rmz.io Git - dotfiles.git/commitdiff
nvim: override treesitter file support
authorSamir Benmendil <me@rmz.io>
Mon, 10 Apr 2023 18:24:17 +0000 (19:24 +0100)
committerSamir Benmendil <me@rmz.io>
Tue, 31 Oct 2023 23:08:51 +0000 (23:08 +0000)
This has been done now because of [LazyVim#524] and replaces `help` with
`vimdoc`. While I was there, I also added `c` and removed a few I've
never heard of.

[LazyVim#524]: https://github.com/LazyVim/LazyVim/issues/524

nvim/lua/plugins/nvim-treesitter.lua [new file with mode: 0644]

diff --git a/nvim/lua/plugins/nvim-treesitter.lua b/nvim/lua/plugins/nvim-treesitter.lua
new file mode 100644 (file)
index 0000000..8b87f09
--- /dev/null
@@ -0,0 +1,23 @@
+return {
+  -- add more treesitter parsers
+  {
+    "nvim-treesitter/nvim-treesitter",
+    opts = {
+      -- overwrites the settings from LazyVim
+      ensure_installed = {
+        "bash",
+        "c",
+        "html",
+        "json",
+        "lua",
+        "markdown",
+        "markdown_inline",
+        "python",
+        "regex",
+        "vim",
+        "vimdoc",
+        "yaml",
+      },
+    },
+  },
+}