feat(treesitter): update template to configure treesitter through AstroCore

This commit is contained in:
Micah Halter 2026-02-17 13:21:15 -05:00 committed by Tim Gröger
parent 61d2e06a31
commit 4f2ccf598d
1 changed files with 20 additions and 9 deletions

View File

@ -1,12 +1,22 @@
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE -- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- Customize Treesitter -- Customize Treesitter
-- --------------------
-- Treesitter customizations are handled with AstroCore
-- as nvim-treesitter simply provides a download utility for parsers
---@type LazySpec ---@type LazySpec
return { return {
"nvim-treesitter/nvim-treesitter", "AstroNvim/astrocore",
---@type AstroCoreOpts
opts = { 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 = { ensure_installed = {
"lua",
"vim",
"vue", "vue",
"html", "html",
"css", "css",
@ -16,4 +26,5 @@ return {
-- add more arguments for adding more treesitter parsers -- add more arguments for adding more treesitter parsers
}, },
}, },
},
} }