From 144de1986cf458a1500a5c5377d70994820f66fb Mon Sep 17 00:00:00 2001 From: leafee98 Date: Mon, 5 Aug 2024 22:01:51 +0800 Subject: [PATCH] simplify treesitter config --- lua/plugins/20-treesitter.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lua/plugins/20-treesitter.lua b/lua/plugins/20-treesitter.lua index b7c967c..b95ebb1 100644 --- a/lua/plugins/20-treesitter.lua +++ b/lua/plugins/20-treesitter.lua @@ -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, }