feat: add nvim-treesitter/nvim-treesitter

This commit is contained in:
Matej Janezic 2025-10-06 00:56:23 +02:00
parent 83871268ff
commit 652daa0087
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
local add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
local now_if_args = vim.fn.argc(-1) > 0 and now or later
now_if_args(function()
add({
source = "nvim-treesitter/nvim-treesitter",
checkout = "main",
hooks = { post_checkout = function() vim.cmd("TSUpdate") end },
})
require("nvim-treesitter").install({
"bash",
"c",
"cpp",
"css",
"diff",
"go",
"html",
"javascript",
"json",
"python",
"regex",
"rust",
"toml",
"tsx",
"yaml",
})
end)