simplify treesitter config

This commit is contained in:
leafee98 2024-08-05 22:01:51 +08:00
parent d27da86f40
commit 144de1986c

View file

@ -58,16 +58,16 @@ return {
opts = {
indent = { enable = true },
highlight = { enable = true },
ensure_installed = ensure,
ensure_installed = {},
auto_install = true,
sync_install = false,
},
config = function (this, opts)
require(this.name .. ".configs").setup(opts);
if custom.proxy_url ~= "" then
require(this.name .. ".install").command_extra_args = {
curl = { "--proxy", custom.proxy_url }
}
end
end
--config = function (this, opts)
-- require(this.name .. ".configs").setup(opts);
-- if custom.proxy_url ~= "" then
-- require(this.name .. ".install").command_extra_args = {
-- curl = { "--proxy", custom.proxy_url }
-- }
-- end
--end,
}