summaryrefslogtreecommitdiffstats
path: root/lua/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/treesitter.lua')
-rw-r--r--lua/plugins/treesitter.lua55
1 files changed, 29 insertions, 26 deletions
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua
index ee16f1b..cbfa516 100644
--- a/lua/plugins/treesitter.lua
+++ b/lua/plugins/treesitter.lua
@@ -1,29 +1,32 @@
return {
- {
- 'nvim-treesitter/nvim-treesitter',
- build = ':TSUpdate',
- event = {
- 'BufReadPost',
- 'BufNewFile'
+ {
+ 'nvim-treesitter/nvim-treesitter',
+ build = ':TSUpdate',
+ event = {
+ 'BufReadPost',
+ 'BufNewFile'
+ },
+ opts = {
+ auto_install = true,
+ ignore_install = { 'latex' },
+ indent = { enable = true, disable = { 'python' } },
+ ensure_installed = {
+ 'javascript',
+ 'python',
+ 'cpp',
+ 'c',
+ 'lua',
+ 'php',
+ 'html',
+ 'css',
+ },
+ },
+ },
+ {
+ 'luckasRanarison/tree-sitter-hyprlang',
+ event = {
+ 'BufReadPre',
+ 'BufNewFile'
+ },
},
- opts = {
- auto_install = true,
- ignore_install = { 'latex' },
- highlight = { enable = true },
- indent = { enable = true, disable = { 'python' } },
- ensure_installed = {
- 'javascript',
- 'python',
- 'cpp',
- 'c',
- 'lua',
- 'php',
- 'html',
- 'css',
- },
- },
- config = function(_, opts)
- require('nvim-treesitter.configs').setup(opts)
- end,
- }
}