icons option for sign col 🎄🎆

pull/268/head
ray-x 1 year ago
parent c75914f7f6
commit 51727a129c

@ -19,9 +19,7 @@ function M.diagnositc_config_sign()
vim.fn.sign_define(sign_name, { text = icons.code_lens_action_icon, texthl = 'LspDiagnosticsSignHint' })
end
if not icons.icons then
return
end
if icons.icons then
local e, w, i, h = icons.diagnostic_err, icons.diagnostic_warn, icons.diagnostic_info, icons.diagnostic_hint
local t = vim.fn.sign_getdefined('DiagnosticSignWarn')
if vim.tbl_isempty(t) or t[1].text == 'W ' then
@ -32,6 +30,7 @@ function M.diagnositc_config_sign()
t = vim.fn.sign_getdefined('DiagnosticSignWarn')
end
end
M.configed = true
end

Loading…
Cancel
Save