Skip to content

Commit

Permalink
stylua format
Browse files Browse the repository at this point in the history
  • Loading branch information
pyqlsa committed Feb 13, 2023
1 parent db9bc85 commit 466f3d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/glow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ end

local function safe_close(h)
if not h:is_closing() then
h:close()
h:close()
end
end

Expand Down Expand Up @@ -114,12 +114,12 @@ local function open_window(cmd_args)
local function on_output(err, data)
if err then
-- what should we really do here?
print("[Glow Error] "..vim.inspect(err))
print("[Glow Error] " .. vim.inspect(err))
end
if data then
local lines = vim.split(data, "\n")
for _, d in ipairs(lines) do
vim.api.nvim_chan_send(chan, d.."\r\n")
vim.api.nvim_chan_send(chan, d .. "\r\n")
end
end
end
Expand All @@ -139,7 +139,7 @@ local function open_window(cmd_args)
local cmd = table.remove(cmd_args, 1)
local job_opts = {
args = cmd_args,
stdio = {nil, job.stdout, job.stderr},
stdio = { nil, job.stdout, job.stderr },
}

job.handle = vim.loop.spawn(cmd, job_opts, vim.schedule_wrap(on_exit))
Expand Down

0 comments on commit 466f3d5

Please sign in to comment.