From 4f2ccf598db8a3e30d72cc9b43f51b7f67de8d62 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 17 Feb 2026 13:21:15 -0500 Subject: [PATCH] feat(treesitter): update template to configure treesitter through AstroCore --- lua/plugins/treesitter.lua | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 2b56a05..de0751a 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,19 +1,30 @@ -- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE -- Customize Treesitter +-- -------------------- +-- Treesitter customizations are handled with AstroCore +-- as nvim-treesitter simply provides a download utility for parsers ---@type LazySpec return { - "nvim-treesitter/nvim-treesitter", + "AstroNvim/astrocore", + ---@type AstroCoreOpts opts = { - ensure_installed = { - "vue", - "html", - "css", - "javascript", - "typescript", - "tsx", - -- add more arguments for adding more treesitter parsers + 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 + }, }, }, }