feat(lsp): 添加golang和rust支持

This commit is contained in:
2025-12-15 15:56:26 +08:00
parent 8ffc9a68c6
commit 2e5863d7d4
6 changed files with 176 additions and 34 deletions

View File

@@ -3,7 +3,20 @@ return {
build = ":TSUpdate",
config = function()
require("nvim-treesitter.configs").setup({
ensure_installed = { "vim", "lua", "javascript", "typescript", "python", "html", "css", "markdown" },
ensure_installed = {
"c",
"c++",
"vim",
"lua",
"javascript",
"typescript",
"python",
"html",
"css",
"markdown",
"go",
"rust",
},
sync_install = false,
auto_install = true,
highlight = {