1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
vim.pack.add({
"https://github.com/windwp/nvim-ts-autotag",
"https://github.com/HiPhish/rainbow-delimiters.nvim",
"https://github.com/RRethy/nvim-treesitter-endwise",
"https://github.com/nvim-treesitter/nvim-treesitter-context",
"https://github.com/nvim-treesitter/nvim-treesitter",
})
require("nvim-treesitter").setup({
sync_install = false,
auto_install = true,
highlight = { enable = true },
autotag = { enable = true },
rainbow = { enable = true, extended_mode = true },
indent = { enable = true },
endwise = { enable = true },
})
vim.api.nvim_create_autocmd("PackChanged", {
callback = function()
vim.cmd("TSUpdate")
end,
})
require("treesitter-context").setup({
max_lines = 4,
})
|