Skip to content

Commit

Permalink
fix(diagnostic): sign config may not have text
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtomjhj authored and ibhagwan committed Mar 7, 2024
1 parent db254a9 commit 1ec5140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fzf-lua/providers/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ M.diagnostics = function(opts)
local level = vim.diagnostic.severity[k:upper()]
if type(sign_confs) ~= "table" or vim.tbl_isempty(sign_confs) then sign_confs = nil end
opts.__signs[v.severity].text =
(not opts.diag_icons or not sign_confs or not sign_confs.text[level])
(not opts.diag_icons or not sign_confs or not sign_confs.text or not sign_confs.text[level])
and v.default or vim.trim(sign_confs.text[level])
opts.__signs[v.severity].texthl = v.name
else
Expand Down

0 comments on commit 1ec5140

Please sign in to comment.