Files
work/term/.config/nvim/lua/plugins/treesitter.lua
T

17 lines
489 B
Lua

return {
"nvim-treesitter/nvim-treesitter",
lazy = true,
build = ":TSUpdate",
event = { "BufReadPost", "BufNewFile" },
config = function()
local ok, configs = pcall(require, "nvim-treesitter.configs")
if ok then
configs.setup({
ensure_installed = { "python", "lua", "json", "yaml", "markdown" },
highlight = { enable = true },
indent = { enable = true },
})
end
end,
}