refactor(diagnostic): add warning to deprecated functions (#16575)

This commit is contained in:
github-actions[bot]
2021-12-08 09:15:24 -07:00
committed by GitHub
parent bd057d4b40
commit 1d32521135
2 changed files with 39 additions and 13 deletions

View File

@@ -1529,6 +1529,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;
@@ -1542,6 +1543,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;