Skip to content

Commit e026466

Browse files
committed
refactor(#2787): suppress deprecated until 0.11
1 parent 5663202 commit e026466

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/nvim-tree/diagnostics.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ local function from_nvim_lsp()
4141

4242
local is_disabled = false
4343
if vim.fn.has "nvim-0.9" == 1 then
44-
is_disabled = vim.diagnostic.is_disabled()
44+
-- replacement is_enabled is not present in all 0.10 builds/releases, see #2781
45+
-- wait until 0.11
46+
is_disabled = vim.diagnostic.is_disabled() ---@diagnostic disable-line: deprecated
4547
end
4648

4749
if not is_disabled then

0 commit comments

Comments
 (0)