aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-09-25 01:04:23 +0200
committerWilliam Boman <william@redwill.se>2021-09-25 01:04:23 +0200
commit3fd55388b7f0bf51c3064a081e3ed23ce1ea2595 (patch)
treed658007ca8aaae4312d825d1dc5bf799b494cce8 /lua
parentfeat: use <esc> to quickly dismiss the info panel (#98) (diff)
downloadmason-3fd55388b7f0bf51c3064a081e3ed23ce1ea2595.tar
mason-3fd55388b7f0bf51c3064a081e3ed23ce1ea2595.tar.gz
mason-3fd55388b7f0bf51c3064a081e3ed23ce1ea2595.tar.bz2
mason-3fd55388b7f0bf51c3064a081e3ed23ce1ea2595.tar.lz
mason-3fd55388b7f0bf51c3064a081e3ed23ce1ea2595.tar.xz
mason-3fd55388b7f0bf51c3064a081e3ed23ce1ea2595.tar.zst
mason-3fd55388b7f0bf51c3064a081e3ed23ce1ea2595.zip
installers/npm: set package scope to avoid naming collisions
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/installers/npm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/installers/npm.lua b/lua/nvim-lsp-installer/installers/npm.lua
index 6b5546e4..e6923520 100644
--- a/lua/nvim-lsp-installer/installers/npm.lua
+++ b/lua/nvim-lsp-installer/installers/npm.lua
@@ -32,7 +32,7 @@ function M.packages(packages)
if not (fs.dir_exists(path.concat { server.root_dir, "node_modules" }) or
fs.file_exists(path.concat { server.root_dir, "package.json" }))
then
- c.run(npm, { "init", "--yes" })
+ c.run(npm, { "init", "--yes", "--scope=lsp-installer" })
end
-- stylua: ignore end
c.run(npm, vim.list_extend({ "install" }, packages))