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