aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/util.lua
diff options
context:
space:
mode:
authorJerry Wang <jianjunw@cn.ibm.com>2020-06-18 08:29:40 +0800
committerJerry Wang <jianjunw@cn.ibm.com>2020-06-18 08:29:40 +0800
commit523624b92f6abff37ec9c88ec9f3f35d37c4810e (patch)
treee07380c4feb6bc4433605d3212f2da931995bcfa /lua/nvim_lsp/util.lua
parentMerge pull request #218 from ms/return-settings-for-empty-string-section (diff)
downloadnvim-lspconfig-523624b92f6abff37ec9c88ec9f3f35d37c4810e.tar
nvim-lspconfig-523624b92f6abff37ec9c88ec9f3f35d37c4810e.tar.gz
nvim-lspconfig-523624b92f6abff37ec9c88ec9f3f35d37c4810e.tar.bz2
nvim-lspconfig-523624b92f6abff37ec9c88ec9f3f35d37c4810e.tar.lz
nvim-lspconfig-523624b92f6abff37ec9c88ec9f3f35d37c4810e.tar.xz
nvim-lspconfig-523624b92f6abff37ec9c88ec9f3f35d37c4810e.tar.zst
nvim-lspconfig-523624b92f6abff37ec9c88ec9f3f35d37c4810e.zip
init npm repo first
Diffstat (limited to 'lua/nvim_lsp/util.lua')
-rw-r--r--lua/nvim_lsp/util.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/nvim_lsp/util.lua b/lua/nvim_lsp/util.lua
index ee431a79..abed9b10 100644
--- a/lua/nvim_lsp/util.lua
+++ b/lua/nvim_lsp/util.lua
@@ -392,6 +392,7 @@ function M.npm_installer(config)
set -e
mkdir -p "{{install_dir}}"
cd "{{install_dir}}"
+ npm init -y
npm install {{packages}} --no-package-lock --no-save --production
{{post_install_script}}
]]):gsub("{{(%S+)}}", install_params)