treesitter json and others, maybe not working yet
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
|
|
||||||
-- Basics
|
-- Basics
|
||||||
|
vim.opt.foldmethod = "expr"
|
||||||
|
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
|
|
||||||
return {}
|
|
||||||
@@ -3,14 +3,10 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
|
opts = {
|
||||||
-- set up
|
ensure_installed = {"python", "bash", "lua", "json", "java", "typescript"},
|
||||||
config = function()
|
|
||||||
local config = require("nvim-treesitter.config")
|
|
||||||
config.setup({
|
|
||||||
ensure_installed = {"python", "bash", "lua"},
|
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true }
|
indent = { enable = true },
|
||||||
})
|
fold = { enable = true }
|
||||||
end
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user