What
Add a normal-mode keymap (e.g. <leader>de) that opens the floating diagnostic window for the current cursor position via vim.diagnostic.open_float().
vim.keymap.set("n", "<leader>de", function()
vim.diagnostic.open_float({ border = "rounded", source = true })
end, { desc = "Show diagnostics for current line" })
Where
lua/config/options.lua — alongside the existing <leader>d diagnostic list keymap (options.lua:13–19) and the vim.diagnostic.config() block (options.lua:54–66).
Why it matters
The config has three diagnostic display modes — tiny-inline-diagnostic virtual text (always on), <leader>d → setloclist (buffer-wide list), and the quickfix-based :Compile output. What's missing is the cursor-level popup: a floating window that shows the full diagnostic message(s) for the current line without leaving the buffer or opening a list. This is the fastest way to read a long error message or see the full source name when multiple LSPs are active. The float.source = true setting is already configured globally in vim.diagnostic.config() (options.lua:59) but that only affects the hover float style — a keymap is needed to trigger it. <leader>de fits the existing <leader>d diagnostic namespace (mnemonic: diagnostic error / expand).
Recommended action
Add the keymap as shown. The border = "rounded" is already the style set in the global vim.diagnostic.config() float config (options.lua:59), so it will be visually consistent.
What
Add a normal-mode keymap (e.g.
<leader>de) that opens the floating diagnostic window for the current cursor position viavim.diagnostic.open_float().Where
lua/config/options.lua— alongside the existing<leader>ddiagnostic list keymap (options.lua:13–19) and thevim.diagnostic.config()block (options.lua:54–66).Why it matters
The config has three diagnostic display modes — tiny-inline-diagnostic virtual text (always on),
<leader>d→setloclist(buffer-wide list), and the quickfix-based:Compileoutput. What's missing is the cursor-level popup: a floating window that shows the full diagnostic message(s) for the current line without leaving the buffer or opening a list. This is the fastest way to read a long error message or see the full source name when multiple LSPs are active. Thefloat.source = truesetting is already configured globally invim.diagnostic.config()(options.lua:59) but that only affects the hover float style — a keymap is needed to trigger it.<leader>defits the existing<leader>ddiagnostic namespace (mnemonic: diagnostic error / expand).Recommended action
Add the keymap as shown. The
border = "rounded"is already the style set in the globalvim.diagnostic.config()float config (options.lua:59), so it will be visually consistent.