diff options
| author | Nanderty <psopka@sopka.ch> | 2024-01-31 15:47:52 +0100 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2024-01-31 15:47:52 +0100 |
| commit | 0d00ee23f35046f8465cb8302b6795d15227dfda (patch) | |
| tree | 3f3042de3a141e491bc98acd91490a263939a74d /lua/plugins/treesitter.lua | |
| parent | 42383b96d9a1b929080824946340d7459d49ac20 (diff) | |
| download | neovim-config-0d00ee23f35046f8465cb8302b6795d15227dfda.tar.gz neovim-config-0d00ee23f35046f8465cb8302b6795d15227dfda.tar.bz2 neovim-config-0d00ee23f35046f8465cb8302b6795d15227dfda.zip | |
Snippets and general improvements
Diffstat (limited to 'lua/plugins/treesitter.lua')
| -rw-r--r-- | lua/plugins/treesitter.lua | 55 |
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, - } } |
