summaryrefslogtreecommitdiffstats
path: root/lua/plugins/treesitter.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-03-21 19:22:45 +0100
committerNanderty <psopka@sopka.ch>2023-03-21 19:22:45 +0100
commit425f6135ec366b9c38b00c8936ad728dbf377714 (patch)
treebe0d634a80ddac7c1deb569a492ca3e8b63a6765 /lua/plugins/treesitter.lua
parent0cbfb1248476aa278c1567deeb4021e68703d7e2 (diff)
downloadneovim-config-425f6135ec366b9c38b00c8936ad728dbf377714.tar.gz
neovim-config-425f6135ec366b9c38b00c8936ad728dbf377714.tar.bz2
neovim-config-425f6135ec366b9c38b00c8936ad728dbf377714.zip
lazy all
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,
+ }
}