mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(diagnostic): revert notification on missing diagnostics (#21632)
This reverts a change introduced in
4ace9e7e41
.
This commit is contained in:
@@ -477,10 +477,6 @@ local function set_list(loclist, opts)
|
|||||||
-- numbers beyond the end of the buffer
|
-- numbers beyond the end of the buffer
|
||||||
local diagnostics = get_diagnostics(bufnr, opts, false)
|
local diagnostics = get_diagnostics(bufnr, opts, false)
|
||||||
local items = M.toqflist(diagnostics)
|
local items = M.toqflist(diagnostics)
|
||||||
if next(items) == nil then
|
|
||||||
vim.notify('No diagnostics available')
|
|
||||||
return
|
|
||||||
end
|
|
||||||
if loclist then
|
if loclist then
|
||||||
vim.fn.setloclist(winnr, {}, ' ', { title = title, items = items })
|
vim.fn.setloclist(winnr, {}, ' ', { title = title, items = items })
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user