Corn.nvim
LSP diagnostics at your corner.
Get your LSP feedback the helix way, denoised, uncluttered and cornered.
Install
{ 'RaafatTurki/corn.nvim' }
Setup
require 'corn'.setup()
Use
require 'corn'.toggle() -- toggle visiblity
require 'corn'.render() -- manually invoke the renderer
or their vim cmds
:CornToggle
:CornRender
Config
-- defaults
require 'corn'.setup {
-- enable plugin auto commands
auto_cmds = true,
-- highlights to use for each diagnostic severity level
highlights = {
error = "DiagnosticFloatingError",
warn = "DiagnosticFloatingWarn",
info = "DiagnosticFloatingInfo",
hint = "DiagnosticFloatingHint",
},
-- icons to use for each diagnostic severity level
icons = {
error = "E",
warn = "W",
hint = "H",
info = "I",
},
}
Plans
- Add a custom renderering config opt for both the window and line contents
- Add
:CornScope current_line
&:CornScope all
- Add a truncated/squashed rendering mode when there isn't enough space