40 lines
670 B
Lua
40 lines
670 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 = {},
|
|
},
|
|
}
|