AstroVimConfig/lua/plugins/treesitter.lua

31 lines
840 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 = {
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",
-- add more arguments for adding more treesitter parsers
},
2025-03-29 09:15:27 +00:00
},
},
}