From b7e3bfd4603d24a251ec7e5b088a7b0556e9a5b7 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 8 Jun 2022 13:14:57 -0700 Subject: [PATCH] Use non-emoji signs for kitty --- neovim/lua/plugins/lsp.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index ecc1448..068410d 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -27,6 +27,14 @@ function M.config_lsp_ui() Hint = "🤔", Info = "➞", } + if vim.env["TERM"] == "xterm-kitty" then + signs = { + Error = "!!", + Warn = "!", + Hint = "?", + Info = "i", + } + end for type, icon in pairs(signs) do local hl = "DiagnosticSign" .. type vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })