my-nvim-lua/lua/plugins/configs/treesitter.lua

17 lines
256 B
Lua

local present, ts_config = pcall(require, "nvim-treesitter.configs")
if not present then
return
end
ts_config.setup {
ensure_installed = {
"lua",
"vim",
},
highlight = {
enable = true,
use_languagetree = true,
},
}