Add additional comments for emoji signs for Kitty

This commit is contained in:
ViViDboarder 2022-08-31 11:23:03 -07:00
parent f9e2976d9f
commit ba6d69e6a7

View File

@ -27,6 +27,8 @@ function M.config_lsp_ui()
Hint = "🤔", Hint = "🤔",
Info = "", Info = "",
} }
-- Don't use emoji for Kitty
if vim.env["TERM"] == "xterm-kitty" then if vim.env["TERM"] == "xterm-kitty" then
signs = { signs = {
Error = "!!", Error = "!!",
@ -35,6 +37,7 @@ function M.config_lsp_ui()
Info = "i", Info = "i",
} }
end end
for type, icon in pairs(signs) do for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })