From d7b29c2cce339e9599cbb20abad5ba895c95a432 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sun, 4 Jul 2021 02:35:38 +0200 Subject: shallow git clones --- lua/nvim-lsp-installer/servers/eslintls/init.lua | 2 +- lua/nvim-lsp-installer/servers/solargraph/install.mjs | 2 +- lua/nvim-lsp-installer/servers/sumneko_lua/install.mjs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/nvim-lsp-installer/servers/eslintls/init.lua b/lua/nvim-lsp-installer/servers/eslintls/init.lua index e2b38729..41c63611 100644 --- a/lua/nvim-lsp-installer/servers/eslintls/init.lua +++ b/lua/nvim-lsp-installer/servers/eslintls/init.lua @@ -54,7 +54,7 @@ local ConfirmExecutionResult = { local root_dir = server.get_server_root_path("eslint") local install_cmd = [[ -git clone https://github.com/microsoft/vscode-eslint .; +git clone --depth 1 https://github.com/microsoft/vscode-eslint .; npm install; cd server; npm install; diff --git a/lua/nvim-lsp-installer/servers/solargraph/install.mjs b/lua/nvim-lsp-installer/servers/solargraph/install.mjs index a525fa56..94db0bc8 100644 --- a/lua/nvim-lsp-installer/servers/solargraph/install.mjs +++ b/lua/nvim-lsp-installer/servers/solargraph/install.mjs @@ -1,4 +1,4 @@ -await $`git clone https://github.com/castwide/solargraph.git .`; +await $`git clone --depth 1 https://github.com/castwide/solargraph.git .`; await $`bundle config set --local without 'development'`; await $`bundle config set --local path 'vendor/bundle'`; diff --git a/lua/nvim-lsp-installer/servers/sumneko_lua/install.mjs b/lua/nvim-lsp-installer/servers/sumneko_lua/install.mjs index 18b7a97d..ce0fba9b 100644 --- a/lua/nvim-lsp-installer/servers/sumneko_lua/install.mjs +++ b/lua/nvim-lsp-installer/servers/sumneko_lua/install.mjs @@ -1,4 +1,4 @@ -await $`git clone https://github.com/sumneko/lua-language-server.git .`; +await $`git clone --depth 1 https://github.com/sumneko/lua-language-server.git .`; await $`git submodule update --init --recursive`; cd("3rd/luamake"); -- cgit v1.2.3-70-g09d2