Skip to content

OceanOSdev/doom-diagnostics.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doom-diagnostics.nvim

CI Latest Release

Code with errors

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.


Features

  • 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

Requirements

  • Neovim 0.9+
  • Optional: 3rd/image.nvim for 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.


Installation (lazy.nvim)

ASCII mode

{
  "OceanOSdev/doom-diagnostics.nvim",
  opts = {
    force_ascii = true,
  },
}

With image support

{
  "OceanOSdev/doom-diagnostics.nvim",
  dependencies = {
    -- ensure image.nvim runs setup() by explicitly setting "opts = {}"
    { "3rd/image.nvim", opts = {} },
  },
  opts = {
    force_ascii = false,
  },
}

Configuration

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,
    },
  },
}

Usage

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


Notes

  • 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)

Troubleshooting

Images are not rendering

If the HUD is visible but no sprite appears:

  • Make sure image.nvim is 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,
  },
}

Future improvements

  • Configurable positioning
  • Animation between states
  • Theming / highlighting support

License

MIT

About

Neovim plugin that shows doom guy in neovim with damage depending on how many diagnostics vim reports

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages