mirror of
https://github.com/neovim/neovim.git
synced 2026-07-09 19:09:39 +00:00
refactor(diagnostic): add warning to deprecated functions (#16575)
This commit is contained in:
committed by
GitHub
parent
bd057d4b40
commit
1d32521135
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user