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 return
end 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({ configs.setup({
-- one of "all" or a list of languages -- one of "all" or a list of languages
ensure_installed = { ensure_installed = {
@ -22,6 +31,7 @@ configs.setup({
'gomod', 'gomod',
'lua', 'lua',
'vim', 'vim',
'vimdoc',
'sql', 'sql',
'yaml', 'yaml',
}, },