Skip to content

Commit

Permalink
fix doctor min size
Browse files Browse the repository at this point in the history
  • Loading branch information
dotrakoun-clearstreet committed Oct 29, 2024
1 parent 63621db commit b9cd241
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nvim/lua/dko/doctor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ M.get_all = function()
table.insert(output, table.concat(warnings, "\n"))
end

if #errors + #warnings == 0 then
table.insert(output, ("%s ᴀʟʟ ɢᴏᴏᴅ"):format(dkoicons.Ok))
end

return output
end

Expand Down Expand Up @@ -90,8 +94,8 @@ M.show_float = function()
row = 1,
}
local size = {
height = math.min(#contents, vim.o.lines),
width = math.floor(vim.o.columns / 2),
height = math.max(math.min(#contents, vim.o.lines), 1),
width = math.max(math.floor(vim.o.columns / 2), 1),
}
local opts = vim.tbl_extend("force", {
style = "minimal",
Expand Down

0 comments on commit b9cd241

Please sign in to comment.