treesitter json and others, maybe not working yet

This commit is contained in:
Mathias Schneider
2026-03-25 17:48:45 +01:00
parent 3f99834f5d
commit 55e57519bc
3 changed files with 8 additions and 12 deletions
+2
View File
@@ -1,5 +1,7 @@
-- Basics
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.tabstop = 4
-2
View File
@@ -1,2 +0,0 @@
return {}
+5 -9
View File
@@ -3,14 +3,10 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
-- set up
config = function()
local config = require("nvim-treesitter.config")
config.setup({
ensure_installed = {"python", "bash", "lua"},
opts = {
ensure_installed = {"python", "bash", "lua", "json", "java", "typescript"},
highlight = { enable = true },
indent = { enable = true }
})
end
indent = { enable = true },
fold = { enable = true }
}
}