To soar like an eagle is to rise above all obstacles.
Following either your mouse or your cursor, this plugin provides a custom floating (popup) window that displays any diagnostic (Error, Warning, Hint) returned by the Diagnostic API, along with lsp information returned by the LSP API.
Enhance your Neovim experience by utilizing the following features:
As you can see, the plugin's window is displaying all the information related to each position.
With Lazy:
{
"soulis-1256/eagle.nvim",
opts = {
--override the default values found in config.lua
}
},
Alternative setup (without Lazy's opts
property), in case you encounter any issues:
{ "soulis-1256/eagle.nvim" },
require("eagle").setup({
--override the default values found in config.lua
})
You can find the description of all the options in config.lua. Here is a concise list:
improved_markdown = true,
mouse_mode = true,
keyboard_mode = false,
logging = false,
close_on_cmd = true,
show_lsp_info = true,
scrollbar_offset = 0,
max_width_factor = 2,
max_height_factor = 2.5,
render_delay = 500,
detect_idle_timer = 50,
window_row = 1,
window_col = 5,
border = "single",
title = "",
title_pos = "center",
title_color = "#8AAAE5",
border_color = "#8AAAE5",
[!IMPORTANT]\ By default,
keyboard_mode
is disabled andmouse_mode
is enabled, but they can both be enabled at the same time.
If you keep mouse_mode
enabled, make sure vim.o.mousemoveevent
is also enabled:
vim.o.mousemoveevent = true
If you enable keyboard_mode
, make sure you set a custom keymap to be able to use the plugin using the keyboard:
vim.keymap.set('n', '<Tab>', ':EagleWin<CR>', { noremap = true, silent = true })
[!NOTE]\ The plugin is confirmed to work on build version
0.10.2
(api level 12
)
You can support me by donating through PayPal and by providing your feedback. You can message me on Discord.