config/.config/nvim/lua/lazyvim/plugins/treesitter.lua
2023-01-08 22:10:04 +10:30

20 lines
546 B
Lua

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