|
62 | 62 | local function check_has_kitty_data() |
63 | 63 | vim.health.start('kitty-scrollback: Kitty data') |
64 | 64 | 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') |
66 | 66 | return true |
67 | 67 | else |
68 | 68 | vim.health.warn('No Kitty data available unable to perform a complete healthcheck', { |
@@ -229,21 +229,25 @@ local function check_kitty_scrollback_nvim_version() |
229 | 229 | version_found and '`' .. current_version:gsub('%s$', '`\n') ---@diagnostic disable-line: need-check-nil |
230 | 230 | or 'ERROR failed to determine version\n' |
231 | 231 | ) |
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 |
233 | 236 | or function(msg) |
234 | | - vim.health.ok(' ' .. msg) |
| 237 | + vim.health.ok('Cattastic!\n' .. msg) |
235 | 238 | end |
236 | 239 | 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 | + \_) ]]) |
247 | 251 |
|
248 | 252 | -- Always consider true even if git version is not found to provide additional health checks |
249 | 253 | return true |
|
0 commit comments