mirror of
https://github.com/neovim/neovim.git
synced 2026-02-19 01:48:30 +00:00
docs: misc (#28761)
Co-authored-by: Florian Zeitz <florob@babelmonkeys.de>
This commit is contained in:
@@ -1985,15 +1985,9 @@ function M.setloclist(opts)
|
||||
set_list(true, opts)
|
||||
end
|
||||
|
||||
--- @deprecated use `vim.diagnostic.enabled(…, false)`
|
||||
--- @deprecated use `vim.diagnostic.enable(false, …)`
|
||||
function M.disable(bufnr, namespace)
|
||||
vim.deprecate(
|
||||
'vim.diagnostic.disable()',
|
||||
'vim.diagnostic.enabled(false, …)',
|
||||
'0.12',
|
||||
nil,
|
||||
false
|
||||
)
|
||||
vim.deprecate('vim.diagnostic.disable()', 'vim.diagnostic.enable(false, …)', '0.12', nil, false)
|
||||
M.enable(false, { bufnr = bufnr, ns_id = namespace })
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user