diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-05-21 09:51:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-21 09:51:03 +0200 |
commit | 976f32aa7a5d62b7bf5d9c3cdcaf81ff373c0570 (patch) | |
tree | 3bcfe13870a10ec4d125c017f373fef620d3f2d0 /runtime/lua/vim/lsp/util.lua | |
parent | 12f45fd697961aa57a26a0d620437d4109537c68 (diff) | |
download | rneovim-976f32aa7a5d62b7bf5d9c3cdcaf81ff373c0570.tar.gz rneovim-976f32aa7a5d62b7bf5d9c3cdcaf81ff373c0570.tar.bz2 rneovim-976f32aa7a5d62b7bf5d9c3cdcaf81ff373c0570.zip |
refactor: add warnings for deprecated functions (#18662)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 0b0d48d15e..4663cf9f09 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -1691,7 +1691,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.deprecate('vim.lsp.util.set_loclist', 'setloclist', '0.8') vim.fn.setloclist(win_id or 0, {}, ' ', { title = 'Language Server', items = items, @@ -1705,7 +1705,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.deprecate('vim.lsp.util.set_qflist', 'setqflist', '0.8') vim.fn.setqflist({}, ' ', { title = 'Language Server', items = items, |