mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 16:54:12 +00:00
docs(diagnostic): diagnostic.Opts.Float extend open_floating_preview.… (#36612)
docs(diagnostic): diagnostic.Opts.Float extend open_floating_preview.Opts #30058 Problem: the opts table also is param of util.open_floating_preview, vim.diagnostic.Opts.Float missing some fields of open_floating_preview. Solution: diagnostic.Opts.Float extend util.open_floating_preview.Opts Fix #29267 Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -109,7 +109,7 @@ end
|
||||
--- @field signs vim.diagnostic.Opts.Signs
|
||||
--- @field severity_sort {reverse?:boolean}
|
||||
|
||||
--- @class vim.diagnostic.Opts.Float
|
||||
--- @class vim.diagnostic.Opts.Float : vim.lsp.util.open_floating_preview.Opts
|
||||
---
|
||||
--- Buffer number to show diagnostics from.
|
||||
--- (default: current buffer)
|
||||
@@ -118,7 +118,7 @@ end
|
||||
--- Limit diagnostics to the given namespace
|
||||
--- @field namespace? integer
|
||||
---
|
||||
--- Show diagnostics from the whole buffer (`buffer"`, the current cursor line
|
||||
--- Show diagnostics from the whole buffer (`buffer`), the current cursor line
|
||||
--- (`line`), or the current cursor position (`cursor`). Shorthand versions
|
||||
--- are also accepted (`c` for `cursor`, `l` for `line`, `b` for `buffer`).
|
||||
--- (default: `line`)
|
||||
@@ -173,10 +173,6 @@ end
|
||||
--- prepending it.
|
||||
--- Overrides the setting from |vim.diagnostic.config()|.
|
||||
--- @field suffix? string|table|(fun(diagnostic:vim.Diagnostic,i:integer,total:integer): string, string)
|
||||
---
|
||||
--- @field focus_id? string
|
||||
---
|
||||
--- @field border? string see |nvim_open_win()|.
|
||||
|
||||
--- @class vim.diagnostic.Opts.Underline
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user