Update nvim treesitter

This commit is contained in:
Shockwave 2024-05-26 13:52:10 +08:00
parent 9c0f638f25
commit 6b55b3c775
1 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,15 @@ if not status_ok then
return
end
local status_ok, parsers = pcall(require, "nvim-treesitter.parsers")
if not status_ok then
return
end
for _, parser in pairs(parsers.get_parser_configs()) do
parser.install_info.url = parser.install_info.url:gsub("https://github.com/", "https://mirror.ghproxy.com/https://github.com/")
end
configs.setup({
-- one of "all" or a list of languages
ensure_installed = {
@ -22,6 +31,7 @@ configs.setup({
'gomod',
'lua',
'vim',
'vimdoc',
'sql',
'yaml',
},