aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/diagnostic.lua
diff options
context:
space:
mode:
authorFolke Lemaitre <folke.lemaitre@gmail.com>2021-05-26 23:47:53 +0200
committerFolke Lemaitre <folke.lemaitre@gmail.com>2021-05-29 13:42:15 +0200
commit64da499ac25bd833c57e0850e31affd22294049e (patch)
treeec999ccf318043a0301ac8b5cc67880a55ff4aeb /runtime/lua/vim/lsp/diagnostic.lua
parent192f89ea1bdb86e8d12a9940872f92f0fc88b300 (diff)
downloadrneovim-64da499ac25bd833c57e0850e31affd22294049e.tar.gz
rneovim-64da499ac25bd833c57e0850e31affd22294049e.tar.bz2
rneovim-64da499ac25bd833c57e0850e31affd22294049e.zip
refactor(lsp): consolidate the different floating window methods into open_floating_preview
Diffstat (limited to 'runtime/lua/vim/lsp/diagnostic.lua')
-rw-r--r--runtime/lua/vim/lsp/diagnostic.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua
index 6f2f846a3b..6a7dc1bbb0 100644
--- a/runtime/lua/vim/lsp/diagnostic.lua
+++ b/runtime/lua/vim/lsp/diagnostic.lua
@@ -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)