Diagnostic Integration

nvim-scrollbar supports multiple sources for code diagnostics.

Supported Sources

  1. Native LSP (vim.diagnostic): Supported automatically on Neovim 0.6+.
  2. CoC (Conquer of Completion): Supported automatically via CocDiagnosticChange autocmds.
  3. ALE (Asynchronous Lint Engine): Supported via ALE LintPost events.

Configuration

To enable or disable specific handlers:

require("scrollbar").setup({
    handlers = {
        diagnostic = true, -- For Native LSP and CoC
        ale = false,       -- For ALE (set to true to enable)
    }
})

Mark Priorities

Diagnostics are color-coded based on severity. The default priorities (higher number = higher priority on the bar) are:

  • Error: Priority 2
  • Warn: Priority 3
  • Info: Priority 4
  • Hint: Priority 5