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