We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c8ddee commit 517e4fbCopy full SHA for 517e4fb
lua/nvim-tree/diagnostics.lua
@@ -39,14 +39,12 @@ end
39
local function from_nvim_lsp()
40
local buffer_severity = {}
41
42
- local is_enabled
43
- if vim.fn.has "nvim-0.10" == 1 then
44
- is_enabled = vim.diagnostic.is_enabled()
45
- else
46
- is_enabled = not vim.diagnostic.is_disabled()
+ local is_disabled = false
+ if vim.fn.has "nvim-0.9" == 1 then
+ is_disabled = vim.diagnostic.is_disabled()
47
end
48
49
- if is_enabled then
+ if not is_disabled then
50
for _, diagnostic in ipairs(vim.diagnostic.get(nil, { severity = M.severity })) do
51
local buf = diagnostic.bufnr
52
if vim.api.nvim_buf_is_valid(buf) then
0 commit comments