From 175c271d900872fbd70d870d60d3e1e359bac796 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 31 Dec 2021 17:31:46 -0800 Subject: [PATCH] Fix trouble icons --- neovim/lua/plugins/lsp.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index 2cb8676..f20f9f2 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -24,7 +24,12 @@ function M.config_lsp_ui() end -- Diagnostics signs - local signs = { Error = "🔥", Warn = "⚠️", Hint = "🤔", Info = "➞" } + local signs = { + Error = "🔥", + Warn = "⚠️", + Hint = "🤔", + Info = "➞", + } for type, icon in pairs(signs) do local hl = "DiagnosticSign" .. type vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) @@ -34,13 +39,8 @@ function M.config_lsp_ui() trouble.setup({ fold_open = "▼", fold_closed = "▶", - signs = { - error = signs.Error, - warning = signs.Warning, - hint = signs.Hint, - information = signs.Info, - other = "", - }, + icons = false, + use_diagnostic_signs = true, }) end) end