diff options
Diffstat (limited to 'lua/nvim-lsp-installer/installers/npm.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/installers/npm.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/installers/npm.lua b/lua/nvim-lsp-installer/installers/npm.lua index 54e71d12..882b7f92 100644 --- a/lua/nvim-lsp-installer/installers/npm.lua +++ b/lua/nvim-lsp-installer/installers/npm.lua @@ -1,3 +1,4 @@ +local path = require("nvim-lsp-installer.path") local shell = require("nvim-lsp-installer.installers.shell") local M = {} @@ -6,4 +7,8 @@ function M.packages(packages) return shell.raw(("npm install %s"):format(table.concat(packages, " "))) end +function M.executable(root_dir, executable) + return path.concat { root_dir, "node_modules", ".bin", executable } +end + return M |
