From ba6d69e6a7f9053ab1d65c1e07406dafa07672d5 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 31 Aug 2022 11:23:03 -0700 Subject: [PATCH] Add additional comments for emoji signs for Kitty --- neovim/lua/plugins/lsp.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index 068410d..d2452a1 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -27,6 +27,8 @@ function M.config_lsp_ui() Hint = "🤔", Info = "➞", } + + -- Don't use emoji for Kitty if vim.env["TERM"] == "xterm-kitty" then signs = { Error = "!!", @@ -35,6 +37,7 @@ function M.config_lsp_ui() 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 })