treesitter json and others, maybe not working yet
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
return {}
|
||||
@@ -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"},
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true }
|
||||
})
|
||||
end
|
||||
opts = {
|
||||
ensure_installed = {"python", "bash", "lua", "json", "java", "typescript"},
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
fold = { enable = true }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user