AstroVimConfig/lua/plugins/treesitter.lua

35 lines
909 B
Lua
Raw Normal View History

2026-04-04 15:48:59 +00:00
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
2025-03-29 09:15:27 +00:00
-- Customize Treesitter
-- --------------------
-- Treesitter customizations are handled with AstroCore
-- as nvim-treesitter simply provides a download utility for parsers
2025-03-29 09:15:27 +00:00
---@type LazySpec
return {
"AstroNvim/astrocore",
---@type AstroCoreOpts
2025-03-29 09:15:27 +00:00
opts = {
treesitter = {
2026-04-10 05:56:53 +00:00
enabled = true,
highlight = true, -- enable/disable treesitter based highlighting
indent = true, -- enable/disable treesitter based indentation
auto_install = true, -- enable/disable automatic installation of detected languages
ensure_installed = {
"lua",
"vim",
"vue",
"html",
"css",
"javascript",
"typescript",
"tsx",
2026-04-10 05:56:53 +00:00
"rust",
"ron",
"toml",
-- add more arguments for adding more treesitter parsers
},
2025-03-29 09:15:27 +00:00
},
},
}