diff options
| author | Nanderty <psopka@sopka.ch> | 2023-03-20 16:29:49 +0100 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2023-03-20 16:29:49 +0100 |
| commit | 7111388965e01e9c712dfc2288028952fe78b664 (patch) | |
| tree | 5f499fc0fbfc2122066b86d02987604146bd5e09 /lua/plugins/treesitter.lua | |
| parent | 423133102d96556d121a97689be1f4f6542e320c (diff) | |
| download | neovim-config-7111388965e01e9c712dfc2288028952fe78b664.tar.gz neovim-config-7111388965e01e9c712dfc2288028952fe78b664.tar.bz2 neovim-config-7111388965e01e9c712dfc2288028952fe78b664.zip | |
lazyvim
Diffstat (limited to 'lua/plugins/treesitter.lua')
| -rw-r--r-- | lua/plugins/treesitter.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua new file mode 100644 index 0000000..6f2fa4e --- /dev/null +++ b/lua/plugins/treesitter.lua @@ -0,0 +1,26 @@ +return { + { + 'nvim-treesitter/nvim-treesitter', + build = ":TSUpdate", + event = { "BufReadPost", "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, + } +} |
