Files
LazyVim/lua/lazyvim/plugins/treesitter.lua
2023-01-01 14:33:56 +01:00

33 lines
720 B
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
event = "BufReadPost",
config = function()
require("nvim-treesitter.configs").setup({
sync_install = false,
ensure_installed = {
"bash",
"help",
"html",
"javascript",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"query",
"regex",
"tsx",
"typescript",
"vim",
"yaml",
},
highlight = { enable = true },
indent = { enable = true },
context_commentstring = { enable = true, enable_autocmd = false },
})
end,
},
}