chore: stylua column width 120 -> 140 (#2448)
* chore: stylua column width 120 -> 140
* chore: stylua column width 120 -> 140, tidy
* Revert "chore: stylua column width 120 -> 140, tidy"
This reverts commit 8a0524d6bd.
* chore: stylua column width 120 -> 140, tidy watcher.lua
* chore: stylua column width 120 -> 140, tidy diagnostics.lua
* chore: stylua column width 120 -> 140, tidy git.lua
* chore: stylua column width 120 -> 140, tidy open-file.lua
* chore: stylua column width 120 -> 140, tidy system-open.lua
* chore: stylua column width 120 -> 140, tidy runner.lua
This commit is contained in:
committed by
GitHub
parent
94e572e141
commit
53b0bcaada
@@ -62,13 +62,7 @@ local function pick_win_id()
|
||||
end
|
||||
|
||||
if #M.window_picker.chars < #selectable then
|
||||
notify.error(
|
||||
string.format(
|
||||
"More windows (%d) than actions.open_file.window_picker.chars (%d) - please add more.",
|
||||
#selectable,
|
||||
#M.window_picker.chars
|
||||
)
|
||||
)
|
||||
notify.error(string.format("More windows (%d) than actions.open_file.window_picker.chars (%d).", #selectable, #M.window_picker.chars))
|
||||
return nil
|
||||
end
|
||||
|
||||
|
||||
@@ -16,18 +16,18 @@ function M.fn(node)
|
||||
stderr = vim.loop.new_pipe(false),
|
||||
}
|
||||
table.insert(process.args, node.link_to or node.absolute_path)
|
||||
process.handle, process.pid = vim.loop.spawn(
|
||||
process.cmd,
|
||||
{ args = process.args, stdio = { nil, nil, process.stderr }, detached = true },
|
||||
function(code)
|
||||
process.stderr:read_stop()
|
||||
process.stderr:close()
|
||||
process.handle:close()
|
||||
if code ~= 0 then
|
||||
notify.warn(string.format("system_open failed with return code %d: %s", code, process.errors))
|
||||
end
|
||||
|
||||
local opts = { args = process.args, stdio = { nil, nil, process.stderr }, detached = true }
|
||||
|
||||
process.handle, process.pid = vim.loop.spawn(process.cmd, opts, function(code)
|
||||
process.stderr:read_stop()
|
||||
process.stderr:close()
|
||||
process.handle:close()
|
||||
if code ~= 0 then
|
||||
notify.warn(string.format("system_open failed with return code %d: %s", code, process.errors))
|
||||
end
|
||||
)
|
||||
end)
|
||||
|
||||
table.remove(process.args)
|
||||
if not process.handle then
|
||||
notify.warn(string.format("system_open failed to spawn command '%s': %s", process.cmd, process.pid))
|
||||
|
||||
Reference in New Issue
Block a user