Add custom handler to nodejs

This commit is contained in:
Marc Hamamji 2023-07-06 16:24:14 +03:00
parent f1b104814f
commit 6248f8b855

View File

@ -15,6 +15,7 @@ return function(buffer)
local handlers = { local handlers = {
['Run current file'] = helpers.shell_handler('node ' .. vim.fn.expand('%')), ['Run current file'] = helpers.shell_handler('node ' .. vim.fn.expand('%')),
['Custom'] = helpers.shell_handler('npm ', true),
} }
for _, bin in pairs(bins) do for _, bin in pairs(bins) do