repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
neovim/print_checkhealth.lua
Raw-- Runs :checkhealth after all deferred config has loaded, prints to stdout.
-- Double-vim.schedule ensures we run AFTER the first wave of vim.schedule
-- callbacks (deferred modules, options/shell, options/win32, treesitter, etc.)
vim.schedule(function()
vim.schedule(function()
vim.cmd('checkhealth')
local buf = vim.api.nvim_get_current_buf()
local lines = vim.api.nvim_buf_get_lines(buf, 0, -1, false)
for _, line in ipairs(lines) do
io.write(line .. '\n')
end
io.flush()
vim.cmd('qa!')
end)
end)