My nvim configuration
| 1 | ---@type LazySpec |
| 2 | return { |
| 3 | "nvim-treesitter/nvim-treesitter", |
| 4 | branch = "main", |
| 5 | lazy = false, |
| 6 | build = ":TSUpdate", |
| 7 | config = function() |
| 8 | require("nvim-treesitter.config").setup({ |
| 9 | ensure_installed = { |
| 10 | "c", |
| 11 | "lua", |
| 12 | "vim", |
| 13 | "vimdoc", |
| 14 | "json", |
| 15 | "python", |
| 16 | "rust", |
| 17 | "typescript", |
| 18 | "markdown", |
| 19 | "bash", |
| 20 | "http", |
| 21 | "astro", |
| 22 | }, |
| 23 | highlight = { |
| 24 | enable = true, |
| 25 | }, |
| 26 | sync_install = false, |
| 27 | auto_install = true, |
| 28 | ignore_install = {}, |
| 29 | modules = {}, |
| 30 | }) |
| 31 | end, |
| 32 | } |