You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/recipes/treesitter.mdx
+77-1Lines changed: 77 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,80 @@ id: treesitter
3
3
title: Customize Treesitter
4
4
---
5
5
6
-
TODO
6
+
AstroCore v3 comes with the ability to help configure `nvim-treesitter` and `nvim-treesitter-textobjects`. These plugins have recently moved to being small utilities and leaving the configuration of features in Neovim up to the users. To alleviate the need for manual configuration for the users, we have added configuration options under a `treesitter` table in AstroCore that align very similarly with the previous configuration options of `nvim-treesitter`. Here is an overview of the available configuration options:
7
+
8
+
```lua title="lua/plugins/treesitter.lua"
9
+
return {
10
+
"AstroNvim/astrocore",
11
+
---@typeAstroCoreOpts
12
+
opts= {
13
+
-- Configuration of treesitter features in Neovim
14
+
treesitter= {
15
+
-- Globally enable or disable treesitter features
16
+
-- can be:
17
+
-- - a boolean
18
+
-- - a function (`fun(lang: string, bufnr: integer): boolean`)
0 commit comments