fix(news): deprecated API
This commit is contained in:
@ -81,7 +81,11 @@ function M.open(file, opts)
|
||||
vim.opt_local.signcolumn = "yes"
|
||||
vim.opt_local.statuscolumn = " "
|
||||
vim.opt_local.conceallevel = 3
|
||||
vim.diagnostic.disable(float.buf)
|
||||
if vim.diagnostic.enable then
|
||||
vim.diagnostic.enable(false, { bufnr = float.buf })
|
||||
else
|
||||
vim.diagnostic.disable(float.buf)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
Reference in New Issue
Block a user