mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor(lsp): consolidate the different floating window methods into open_floating_preview
This commit is contained in:
@@ -1151,6 +1151,7 @@ function M.show_line_diagnostics(opts, bufnr, line_nr, client_id)
|
||||
end
|
||||
end
|
||||
|
||||
opts.focus_id = "line_diagnostics"
|
||||
local popup_bufnr, winnr = util.open_floating_preview(lines, 'plaintext', opts)
|
||||
for i, hi in ipairs(highlights) do
|
||||
local prefixlen, hiname = unpack(hi)
|
||||
|
||||
Reference in New Issue
Block a user