-- ============================================================================ -- 语法高亮 (Tree-sitter) -- ============================================================================ return { { "nvim-treesitter/nvim-treesitter", event = { "BufReadPre", "BufNewFile" }, build = ":TSUpdate", opts = { ensure_installed = { "lua", -- Lua "bash", -- Bash "rust", -- Rust "c", -- C "cpp", -- C++ "cmake", -- CMake "python", -- Python "java", -- Java "go", -- Go "json", -- JSON "toml", -- TOML "markdown", -- Markdown "regex", -- 正则 "vim", -- Vimscript }, highlight = { enable = true }, indent = { enable = true }, }, }, }