config/.config/nvim/lua/lazyvim/plugins/treesitter.lua
2023-01-10 09:19:58 +10:30

20 lines
465 B
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
event = "BufReadPost",
opts = {
sync_install = false,
matchup = { enable = true },
highlight = { enable = true },
autopairs = { enable = true },
indent = { enable = true },
context_commentstring = { enable = true, enable_autocmd = false },
ensure_installed = "all",
},
config = function(plugin, opts)
require("nvim-treesitter.configs").setup(opts)
end,
},
}