Add run current file handler for node

This commit is contained in:
MarcHamamji 2023-02-16 11:53:03 +02:00
parent f1063e0991
commit a5688d1ef2

View File

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