To soar like an eagle is to rise above all the obstacles that come your way.
Following your mouse cursor, this plugin introduces a custom floating (popup) window that displays any diagnostic (Error, Warning, Hint) with the help of the Diagnostic API of Neovim, along with LSP Information.
Enhance your Neovim experience by utilizing the following features:
- Detect when the mouse hovers over an underlined part of code, including nested code and diagnostics that are in different parts of the same line.
- Process what kind of diagnostic is under the current mouse position. If there are multiple diagnostics on the same position (ie error and warning), display them all in a numbered list.
- Show LSP information (the same contents as with vim.lsp.buf.hover()).
You can see how the window looks in the following screenshot:
This was in a C++ workspace, with clangd and clang-tidy configured. Remember that you can also shift+click the href links to open them in your browser.
Note
The plugin has been tested on Neovim versions 0.9.4 and 0.9.5.
Using Lazy:
{
"soulis-1256/eagle.nvim"
},
All the configurable options are in the "defaults" table of config.lua.
require("eagle").setup({})
You can support me by donating through PayPal and by providing your feedback. You can find me on Discord.