Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 6a07973

Browse files
committed
fix: focusable_preview deprecation warnings
Changed it from the now deprecated focusable_preview to the new open_floating_preview
1 parent 8bca7ac commit 6a07973

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lua/completion/signature_help.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ M.autoOpenSignatureHelp = function()
4242
if vim.tbl_isempty(lines) then
4343
return
4444
end
45-
local bufnr, _ = vim.lsp.util.focusable_preview(method, function()
45+
local bufnr, _ = vim.lsp.util.open_floating_preview(
4646
-- TODO show popup when signatures is empty?
47-
lines = vim.lsp.util.trim_empty_lines(lines)
48-
return lines, vim.lsp.util.try_trim_markdown_code_blocks(lines)
49-
end)
47+
vim.lsp.util.trim_empty_lines(lines),
48+
vim.lsp.util.try_trim_markdown_code_blocks(lines),
49+
{focus_id = method}
50+
)
5051
-- setup a variable for floating window, fix #223
5152
vim.api.nvim_buf_set_var(bufnr, "lsp_floating", true)
5253
end)

0 commit comments

Comments
 (0)