Skip to content

Commit 01574fa

Browse files
committed
chore: update checkhealth formatting
1 parent 6db896d commit 01574fa

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

lua/kitty-scrollback/health.lua

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ end
6262
local function check_has_kitty_data()
6363
vim.health.start('kitty-scrollback: Kitty data')
6464
if type(p) == 'table' and next(p.kitty_data) then
65-
vim.health.ok('Kitty data available\n>lua\n' .. vim.inspect(p.kitty_data) .. '\n')
65+
vim.health.ok('Kitty data available\n\n>lua\n' .. vim.inspect(p.kitty_data) .. '\n')
6666
return true
6767
else
6868
vim.health.warn('No Kitty data available unable to perform a complete healthcheck', {
@@ -229,21 +229,25 @@ local function check_kitty_scrollback_nvim_version()
229229
version_found and '`' .. current_version:gsub('%s$', '`\n') ---@diagnostic disable-line: need-check-nil
230230
or 'ERROR failed to determine version\n'
231231
)
232-
local health_fn = not version_found and vim.health.warn
232+
local health_fn = not version_found
233+
and function(msg)
234+
vim.health.warn('Catastrophe!\n' .. msg)
235+
end
233236
or function(msg)
234-
vim.health.ok(' ' .. msg)
237+
vim.health.ok('Cattastic!\n' .. msg)
235238
end
236239
vim.health.start('kitty-scrollback: kitty-scrollback.nvim version')
237-
health_fn([[ /\___/| ]] .. header .. [[
238-
=) ^Y^ (=
239-
\ ^ / If you have any issues or questions using *kitty-scrollback.nvim* then
240-
)=*=( please create an issue at
241-
/ \ https://github.com/mikesmithgh/kitty-scrollback.nvim/issues and
242-
| | provide the `KittyScrollbackCheckHealth` report.
243-
/| | | |\
244-
\| | \_|/\
245-
/_// ___/ *Bonus* *points* *for* *cat* *memes*
246-
\_) ]])
240+
health_fn([[
241+
/\___/| ]] .. header .. [[
242+
=) ^Y^ (=
243+
\ ^ / If you have any issues or questions using *kitty-scrollback.nvim* then
244+
)=*=( please create an issue at
245+
/ \ https://github.com/mikesmithgh/kitty-scrollback.nvim/issues and
246+
| | provide the `KittyScrollbackCheckHealth` report.
247+
/| | | |\
248+
\| | \_|/\
249+
/_// ___/ *Bonus* *points* *for* *cat* *memes*
250+
\_) ]])
247251

248252
-- Always consider true even if git version is not found to provide additional health checks
249253
return true

0 commit comments

Comments
 (0)