config/.config/nvim/lua/lazyvim/plugins/treesitter.lua
2023-12-04 09:24:09 +10:30

42 lines
1.0 KiB
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
dependencies = {
"treesitter-context",
},
opts = {
matchup = { enable = true },
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
autopairs = { enable = true },
indent = { enable = true },
ensure_installed = {
"c_sharp",
"lua",
"c",
"vim",
"javascript",
"regex",
"markdown_inline",
"typescript",
"html",
"jsonc",
"go",
},
auto_install = true,
},
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
},
{
"nvim-treesitter/nvim-treesitter-context",
name = "treesitter-context",
lazy = true,
opts = {},
},
}