summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/custom/plugins/treesitter.lua')
-rw-r--r--.config/nvim/lua/custom/plugins/treesitter.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/nvim/lua/custom/plugins/treesitter.lua b/.config/nvim/lua/custom/plugins/treesitter.lua
new file mode 100644
index 0000000..d869a5e
--- /dev/null
+++ b/.config/nvim/lua/custom/plugins/treesitter.lua
@@ -0,0 +1,13 @@
+return {
+ 'nvim-treesitter/nvim-treesitter',
+ build = ':TSUpdate',
+ config = function()
+ ---@type userdata
+ require('nvim-treesitter.configs').setup({
+ -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
+ auto_install = true,
+ highlight = { enable = true },
+ indent = { enable = true },
+ })
+ end,
+}