mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
fix(diagnostic): get border from config (#28531)
Co-authored-by: Justin M. Keyes <justinkz@gmail.com> Co-authored-by: Gregory Anders <greg@gpanders.com>
This commit is contained in:
@@ -190,7 +190,7 @@ do
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '<C-W>d', function()
|
||||
vim.diagnostic.open_float({ border = 'rounded' })
|
||||
vim.diagnostic.open_float()
|
||||
end, {
|
||||
desc = 'Open a floating window showing diagnostics under the cursor',
|
||||
})
|
||||
|
||||
@@ -152,6 +152,8 @@ local M = {}
|
||||
--- @field suffix? string|table|(fun(diagnostic:vim.Diagnostic,i:integer,total:integer): string, string)
|
||||
---
|
||||
--- @field focus_id? string
|
||||
---
|
||||
--- @field border? string see |vim.api.nvim_open_win()|.
|
||||
|
||||
--- @class vim.diagnostic.Opts.Underline
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user