Update nvim treesitter
This commit is contained in:
parent
9c0f638f25
commit
6b55b3c775
|
@ -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',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue