aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-12-08 16:47:19 +0100
committerGitHub <noreply@github.com>2021-12-08 08:47:19 -0700
commitc4d70dae802ef074aaf54bdcbbd5f73380f74a86 (patch)
treefa2a374d82e60284f5085b9e4a5e703b46bbbc97 /runtime/lua/vim/lsp/util.lua
parentcf32053d6005bb13c41434dea7127713ad46346a (diff)
downloadrneovim-c4d70dae802ef074aaf54bdcbbd5f73380f74a86.tar.gz
rneovim-c4d70dae802ef074aaf54bdcbbd5f73380f74a86.tar.bz2
rneovim-c4d70dae802ef074aaf54bdcbbd5f73380f74a86.zip
refactor(diagnostic): add warning to deprecated functions (#16536)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 059e66c53a..a3a91a34f7 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1531,6 +1531,7 @@ end
---
---@param items (table) list of items
function M.set_loclist(items, win_id)
+ vim.api.nvim_echo({{'vim.lsp.util.set_loclist is deprecated. See :h deprecated', 'WarningMsg'}}, true, {})
vim.fn.setloclist(win_id or 0, {}, ' ', {
title = 'Language Server';
items = items;
@@ -1544,6 +1545,7 @@ end
---
---@param items (table) list of items
function M.set_qflist(items)
+ vim.api.nvim_echo({{'vim.lsp.util.set_qflist is deprecated. See :h deprecated', 'WarningMsg'}}, true, {})
vim.fn.setqflist({}, ' ', {
title = 'Language Server';
items = items;