aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/pluginsconfig/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/pluginsconfig/treesitter.lua')
-rw-r--r--.config/nvim/lua/pluginsconfig/treesitter.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/nvim/lua/pluginsconfig/treesitter.lua b/.config/nvim/lua/pluginsconfig/treesitter.lua
new file mode 100644
index 0000000..feb1f5c
--- /dev/null
+++ b/.config/nvim/lua/pluginsconfig/treesitter.lua
@@ -0,0 +1,18 @@
+local present, treesitter = pcall(require, "nvim-treesitter.configs")
+
+if not present then
+ return
+end
+
+treesitter.setup {
+ autotag = {
+ enable = true,
+ },
+ ensure_installed = "lua",
+ highlight = {
+ enable = true,
+ },
+ enable = true,
+ extended_mode = true,
+ max_file_lines = nil,
+ }