mason.nvim
mason.nvim copied to clipboard
feat(npm): add `install_args` option
(Rework of #1580)
Often, when I'm working, my npm registry is set to the work's registry, which sometimes causes npm installations in Mason to fail.
To overcome this, I added the option to provide install_args
to npm, the same as available in pip, so I can configure Mason to always use the default npm registry.
Note: I wasn't sure if I should also support it in lua/mason-core/managers/npm/init.lua
, because I could not find any references where it is used (except tests). Let me know, and I can add it if needed.
Resolved conflicts
@williamboman can you please give this one a review? 🙏🏻 It's a relatively small change