|
|
|
@ -25,7 +25,7 @@ function M.diagnositc_config_sign()
|
|
|
|
|
icons.diagnostic_hint
|
|
|
|
|
if vim.diagnostic ~= nil then
|
|
|
|
|
local t = vim.fn.sign_getdefined('DiagnosticSignWarn')
|
|
|
|
|
if vim.tbl_isempty(t) or t[1].text == "W " and icons.icons == true then
|
|
|
|
|
if (vim.tbl_isempty(t) or t[1].text == "W ") and icons.icons == true then
|
|
|
|
|
|
|
|
|
|
vim.fn.sign_define('DiagnosticSignError',
|
|
|
|
|
{text = e, texthl = 'DiagnosticError', linehl = '', numhl = ''})
|
|
|
|
@ -40,7 +40,7 @@ function M.diagnositc_config_sign()
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
local t = vim.fn.sign_getdefined('LspDiagnosticSignWarn')
|
|
|
|
|
if vim.tbl_isempty(t) or t[1].text == "W " and icons.icons == true then
|
|
|
|
|
if (vim.tbl_isempty(t) or t[1].text == "W ") and icons.icons == true then
|
|
|
|
|
vim.fn.sign_define('LspDiagnosticsSignError',
|
|
|
|
|
{text = e, texthl = 'LspDiagnosticsSignError', linehl = '', numhl = ''})
|
|
|
|
|
vim.fn.sign_define('LspDiagnosticsSignWarning',
|
|
|
|
|