From 7aa1a4bc47a41a1f6b43381ab492a73e01e1969a Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Sun, 5 Nov 2023 22:54:15 -0600 Subject: [PATCH] LSP signs --- vim/.vim/lua/plugins/lsp_lines.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vim/.vim/lua/plugins/lsp_lines.lua b/vim/.vim/lua/plugins/lsp_lines.lua index 0786e2f..30b0d28 100644 --- a/vim/.vim/lua/plugins/lsp_lines.lua +++ b/vim/.vim/lua/plugins/lsp_lines.lua @@ -3,6 +3,18 @@ return { event = "VimEnter", name = "lsp_lines.nvim", config = function() + local signs = { + Error = " ", + Warning = " ", + Hint = " ", + Info = " ", + Other = " ", + } + for type, icon in pairs(signs) do + local hl = "DiagnosticSign" .. type + vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) + end + require("lsp_lines").setup() vim.diagnostic.config({ virtual_text = false })