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.lua51
1 files changed, 27 insertions, 24 deletions
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua
index 6f2fa4e..4e488ad 100644
--- a/lua/plugins/treesitter.lua
+++ b/lua/plugins/treesitter.lua
@@ -1,26 +1,29 @@
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,
- }
+ {
+ '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,
+ }
}