neovim/lua/plugins/treesitter.lua
2024-04-27 17:37:49 -07:00

41 lines
1,005 B
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
version = false,
build = ":TSUpdate",
opts = {
ensure_installed = {
"lua",
"javascript",
"typescript",
"tsx",
"htmldjango",
"html",
"jsonc",
"json",
"jsdoc",
"markdown",
"markdown_inline",
"vim",
"vimdoc",
},
highlight = { enable = true },
indent = { enable = true },
},
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
},
{
"nvim-treesitter/nvim-treesitter-context",
opts = {
max_lines = 2,
},
},
{
-- TODO: Figure out why this plugin is not working.
"windwp/nvim-autopairs",
event = "VeryLazy",
opts = {},
},
}