summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/treesitter.lua')
-rw-r--r--.config/nvim/lua/plugins/treesitter.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua
new file mode 100644
index 0000000..778f5a0
--- /dev/null
+++ b/.config/nvim/lua/plugins/treesitter.lua
@@ -0,0 +1,13 @@
+-- https://github.com/nvim-treesitter/nvim-treesitter
+return {
+ "nvim-treesitter/nvim-treesitter",
+ build = ":TSUpdate",
+
+ config = function()
+ require("nvim-treesitter.configs").setup({
+ auto_install = true,
+ highlight = { enable = true },
+ indent = { enable = true },
+ })
+ end
+}