Files
dotfiles/.config/nvim/lua/plugins/treesitter.lua
T
2026-01-18 16:07:54 +00:00

54 lines
1.0 KiB
Lua

-- return {
-- "nvim-treesitter/nvim-treesitter",
-- config = function()
-- require("nvim-treesitter.configs").setup({
-- ensure_installed = {"c", "vimdoc", "markdown", "jsonc", "lua"},
-- sync_install = false,
-- highlight = { enable = true },
-- indent = { enable = true },
-- })
-- end,
-- }
return {
"nvim-treesitter/nvim-treesitter",
opts = {
highlight = { enable = true },
indent = { enable = true },
ensure_installed = {
"bash",
"c",
"dart",
"diff",
"go",
"html",
"javascript",
"jsdoc",
"json",
"jsonc",
"lua",
"luadoc",
"luap",
"make",
"markdown",
"markdown_inline",
"printf",
"python",
"query",
"regex",
"rust",
"toml",
"tsx",
"typescript",
"vim",
"vimdoc",
"xml",
"yaml",
},
},
---@param opts TSConfig
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
}