Merge branch 'dev' into StyLua-workflow

This commit is contained in:
Marc
2023-04-05 13:44:40 +03:00
committed by GitHub
9 changed files with 109 additions and 94 deletions

View File

@@ -1,5 +1,5 @@
local helpers = require("runner.handlers.helpers")
local utils = require("runner.handlers.utils")
local helpers = require('runner.handlers.helpers')
local utils = require('runner.handlers.utils')
return function(buffer)
utils.run_command(utils.script_path() .. "get-scripts.sh", function(output)
@@ -13,9 +13,9 @@ return function(buffer)
end
end
local handlers = {
["Run current file"] = helpers.shell_handler("node " .. vim.fn.expand("%")),
}
local handlers = {
['Run current file'] = helpers.shell_handler('node ' .. vim.fn.expand('%')),
}
for _, bin in pairs(bins) do
handlers['Run "' .. bin .. '"'] = helpers.shell_handler("npm run " .. bin)