From dc6c9fe44240d02ecb65eb8689ce5a90f9f14270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Fu=C3=9Fenegger?= Date: Wed, 20 Oct 2021 17:27:55 +0200 Subject: [PATCH] fix(lsp): adjust legacy show diagnostic functions to use correct scope (#16106) * `where` was renamed to `scope` --- runtime/lua/vim/lsp/diagnostic.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua index 8fb7971c5a..bea0e44aca 100644 --- a/runtime/lua/vim/lsp/diagnostic.lua +++ b/runtime/lua/vim/lsp/diagnostic.lua @@ -552,7 +552,7 @@ end ---@return table {popup_bufnr, win_id} function M.show_position_diagnostics(opts, buf_nr, position) opts = opts or {} - opts.where = "cursor" + opts.scope = "cursor" opts.pos = position if opts.severity then opts.severity = severity_lsp_to_vim(opts.severity) @@ -575,7 +575,7 @@ end ---@return table {popup_bufnr, win_id} function M.show_line_diagnostics(opts, buf_nr, line_nr, client_id) opts = opts or {} - opts.where = "line" + opts.scope = "line" opts.pos = line_nr if client_id then opts.namespace = M.get_namespace(client_id)