blob: 02c2f533c215424511c9a001342962ba08369cfa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
local path = require "nvim-lsp-installer.path"
local shell = require "nvim-lsp-installer.installers.shell"
local M = {}
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
|