mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(news): pcall diag when showing news for older Neovim versions
This commit is contained in:
parent
bcbab77f0c
commit
94bf4f9324
1 changed files with 2 additions and 2 deletions
|
@ -82,9 +82,9 @@ function M.open(file, opts)
|
||||||
vim.opt_local.statuscolumn = " "
|
vim.opt_local.statuscolumn = " "
|
||||||
vim.opt_local.conceallevel = 3
|
vim.opt_local.conceallevel = 3
|
||||||
if vim.diagnostic.enable then
|
if vim.diagnostic.enable then
|
||||||
vim.diagnostic.enable(false, { bufnr = float.buf })
|
pcall(vim.diagnostic.enable, false, { bufnr = float.buf })
|
||||||
else
|
else
|
||||||
vim.diagnostic.disable(float.buf)
|
pcall(vim.diagnostic.disable, float.buf)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue