Diagnostic Integration
nvim-scrollbar supports multiple sources for code diagnostics.
Supported Sources
- Native LSP (
vim.diagnostic): Supported automatically on Neovim 0.6+. - CoC (Conquer of Completion): Supported automatically via
CocDiagnosticChangeautocmds. - ALE (Asynchronous Lint Engine): Supported via
ALE LintPostevents.
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