run stylua

This commit is contained in:
Smirnov Oleksandr 2023-07-19 23:29:21 +03:00
parent d20081f2b0
commit 79e3da0085
2 changed files with 8 additions and 2 deletions

View file

@ -9,7 +9,10 @@ iferr.iferr = function()
local data = vim.fn.systemlist(cmd, vim.fn.bufnr "%") local data = vim.fn.systemlist(cmd, vim.fn.bufnr "%")
if vim.v.shell_error ~= 0 then if vim.v.shell_error ~= 0 then
u.deferred_notify("command " .. cmd .. " exited with code " .. vim.v.shell_error, vim.log.levels.ERROR) u.deferred_notify(
"command " .. cmd .. " exited with code " .. vim.v.shell_error,
vim.log.levels.ERROR
)
return return
end end

View file

@ -20,7 +20,10 @@ local function install(pkg)
args = { "install", url }, args = { "install", url },
on_exit = function(_, retval) on_exit = function(_, retval)
if retval ~= 0 then if retval ~= 0 then
u.deferred_notify("command 'go install " .. url .. "' exited with code " .. retval, vim.log.levels.ERROR) u.deferred_notify(
"command 'go install " .. url .. "' exited with code " .. retval,
vim.log.levels.ERROR
)
return return
end end