Remove nodejs errors from choice handler

This commit is contained in:
Marc 2023-04-14 23:54:01 +03:00 committed by GitHub
commit 79921f8a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ local M = {}
--- ``` --- ```
--- ---
--- @param command string The shell command to run when the handler called --- @param command string The shell command to run when the handler called
--- @param editable boolean Whether the user should be prompted to edit the command using `vim.input()` before running it. Useful when giving command line arguments to a script --- @param editable boolean? Whether the user should be prompted to edit the command using `vim.input()` before running it. Useful when giving command line arguments to a script. *Defaults to false*
M.shell_handler = function(command, editable) M.shell_handler = function(command, editable)
if editable == nil then if editable == nil then
editable = false editable = false

View File

@ -7,7 +7,7 @@ return function(buffer)
for _, line in pairs(output) do for _, line in pairs(output) do
for _, data in pairs(line) do for _, data in pairs(line) do
if vim.trim(data) ~= '' then if vim.trim(data) ~= '' and not string.match(data, 'npm ERR!') then
bins[#bins + 1] = data bins[#bins + 1] = data
end end
end end