Fix errors to heal Doomguy
A Neovim plugin that displays a Doom-style HUD based on your diagnostics.
Originally started as a small one-off personal plugin, but I figured I'd clean it up and throw it on Github.
- Visual feedback based on diagnostics (errors, warnings, hints)
- Floating HUD anchored to the editor
- Optional image rendering via
image.nvim - ASCII fallback when images are unavailable
- Updates automatically as you work
- Neovim 0.9+
- Optional:
3rd/image.nvimfor sprite rendering
If image.nvim is not available, the plugin falls back to ASCII mode.
Note
image.nvim requires additional system dependencies such as ImageMagick.
{
"OceanOSdev/doom-diagnostics.nvim",
opts = {
force_ascii = true,
},
}{
"OceanOSdev/doom-diagnostics.nvim",
dependencies = {
-- ensure image.nvim runs setup() by explicitly setting "opts = {}"
{ "3rd/image.nvim", opts = {} },
},
opts = {
force_ascii = false,
},
}Default configuration:
{
win_width = 25,
pain_weights = {
error = 10,
warning = 5,
hint = 1,
},
force_ascii = false,
}Example:
{
"OceanOSdev/doom-diagnostics.nvim",
opts = {
win_width = 30,
pain_weights = {
error = 20,
warning = 5,
hint = 0,
},
},
}Toggle the HUD:
:DoomToggle
The HUD updates automatically when:
- diagnostics change
- buffers or windows change
- an LSP client attaches
More errors -> more pain
Fewer errors -> Doomguy recovers
- The HUD is hidden in special buffers (e.g. Telescope, file explorers)
- The HUD currently only appears when an LSP client is attached
- Position is fixed to the top-right corner (for now)
If the HUD is visible but no sprite appears:
- Make sure
image.nvimis installed and loaded - Ensure required system dependencies (e.g. ImageMagick) are installed
- Try enabling ASCII mode to confirm the plugin is working:
{
"OceanOSdev/doom-diagnostics.nvim",
opts = {
force_ascii = true,
},
}- Configurable positioning
- Animation between states
- Theming / highlighting support
MIT
