mirror of
https://github.com/kristoferssolo/runner.nvim.git
synced 2025-10-21 19:50:34 +00:00
Add run current file handler for node
This commit is contained in:
parent
f1063e0991
commit
a5688d1ef2
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user