mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
26b5405d18
commit
83635e4e3d
@ -499,6 +499,7 @@ Lua module: vim.diagnostic *diagnostic-api*
|
|||||||
diagnostic instead of prepending it. Overrides the
|
diagnostic instead of prepending it. Overrides the
|
||||||
setting from |vim.diagnostic.config()|.
|
setting from |vim.diagnostic.config()|.
|
||||||
• {focus_id}? (`string`)
|
• {focus_id}? (`string`)
|
||||||
|
• {border}? (`string`) see |vim.api.nvim_open_win()|.
|
||||||
|
|
||||||
*vim.diagnostic.Opts.Signs*
|
*vim.diagnostic.Opts.Signs*
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ do
|
|||||||
})
|
})
|
||||||
|
|
||||||
vim.keymap.set('n', '<C-W>d', function()
|
vim.keymap.set('n', '<C-W>d', function()
|
||||||
vim.diagnostic.open_float({ border = 'rounded' })
|
vim.diagnostic.open_float()
|
||||||
end, {
|
end, {
|
||||||
desc = 'Open a floating window showing diagnostics under the cursor',
|
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 suffix? string|table|(fun(diagnostic:vim.Diagnostic,i:integer,total:integer): string, string)
|
||||||
---
|
---
|
||||||
--- @field focus_id? string
|
--- @field focus_id? string
|
||||||
|
---
|
||||||
|
--- @field border? string see |vim.api.nvim_open_win()|.
|
||||||
|
|
||||||
--- @class vim.diagnostic.Opts.Underline
|
--- @class vim.diagnostic.Opts.Underline
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user