neovim/lua/plugins/treesitter.lua
2024-02-04 11:17:56 -08:00

26 lines
757 B
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local config = require("nvim-treesitter.configs")
config.setup({
ensure_installed = { "lua", "javascript", "typescript", "tsx", "htmldjango", "html", "jsonc", "json", "jsdoc", "markdown", "markdown_inline", "vim", "vimdoc" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true }
})
end
},
{
"nvim-treesitter/nvim-treesitter-context",
opts = {
max_lines = 2,
}
},
{
'windwp/nvim-autopairs',
event = "InsertEnter",
opts = {}
}
}