From 505a55df18aabbd0ac7dc034e3ee50269b861a00 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 12 Oct 2021 23:44:57 +0200 Subject: [PATCH] Added signs for lsp info/warning/error --- lua/mylsp.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/mylsp.lua b/lua/mylsp.lua index 877e281..6ee0d34 100644 --- a/lua/mylsp.lua +++ b/lua/mylsp.lua @@ -91,3 +91,9 @@ for _, lsp in ipairs(servers) do capabilities = capabilities, } end + +local signs = { Error = " ", Warning = " ", Hint = " ", Information = " " } +for type, icon in pairs(signs) do + local hl = "LspDiagnosticsSign" .. type + vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" }) +end