Skip to content

Commit

Permalink
fix: detect changes only when minor version > 9
Browse files Browse the repository at this point in the history
  • Loading branch information
delphinus committed Sep 3, 2023
1 parent 89fb6ee commit 9dc3d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/telescope/builtin/__diagnostics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ local diagnostics_to_tbl = function(opts)
diagnosis_opts.severity["max"] = opts.severity_bound
end
end
if vim.version() > vim.version.parse "0.9.1" and vim.tbl_isempty(diagnosis_opts.severity) then
if vim.version().minor > 9 and vim.tbl_isempty(diagnosis_opts.severity) then
diagnosis_opts.severity = nil
end

Expand Down

0 comments on commit 9dc3d90

Please sign in to comment.