summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/config/plugins/treesitter.lua17
1 files changed, 16 insertions, 1 deletions
diff --git a/lua/config/plugins/treesitter.lua b/lua/config/plugins/treesitter.lua
index a564707..8e3df6a 100644
--- a/lua/config/plugins/treesitter.lua
+++ b/lua/config/plugins/treesitter.lua
@@ -1 +1,16 @@
-return {}
+return {
+ {
+ "nvim-treesitter",
+ event = "DeferredUIEnter",
+ load = function(name)
+ vim.cmd.packadd(name)
+ vim.cmd.packadd("nvim-treesitter-textobjects")
+ end,
+ after = function(_)
+ require("nvim-treesitter.configs").setup({
+ highlight = { enable = true },
+ indent = { enable = true },
+ })
+ end,
+ },
+}