summaryrefslogtreecommitdiff
path: root/dotfiles/.config/nvim/lua/plugins/treesitter.lua
diff options
context:
space:
mode:
authorDenis Chevalier <perso@denischevalier.fr>2026-08-03 21:09:25 +0200
committerDenis Chevalier <perso@denischevalier.fr>2026-08-03 21:09:25 +0200
commitfef7a7ef4fa31170ee78dfb774934feb84a88423 (patch)
treee88b5afd2feae6f9755e2ab345e6bca15a567d6a /dotfiles/.config/nvim/lua/plugins/treesitter.lua
downloadpostinstall-fef7a7ef4fa31170ee78dfb774934feb84a88423.tar.gz
postinstall-fef7a7ef4fa31170ee78dfb774934feb84a88423.tar.bz2
postinstall-fef7a7ef4fa31170ee78dfb774934feb84a88423.zip
arch postinstall scripts
Diffstat (limited to 'dotfiles/.config/nvim/lua/plugins/treesitter.lua')
-rw-r--r--dotfiles/.config/nvim/lua/plugins/treesitter.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/dotfiles/.config/nvim/lua/plugins/treesitter.lua b/dotfiles/.config/nvim/lua/plugins/treesitter.lua
new file mode 100644
index 0000000..3a9afe9
--- /dev/null
+++ b/dotfiles/.config/nvim/lua/plugins/treesitter.lua
@@ -0,0 +1,24 @@
+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 {
+ "AstroNvim/astrocore",
+ ---@type AstroCoreOpts
+ 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",
+ -- add more arguments for adding more treesitter parsers
+ },
+ },
+ },
+}