From eed3f93c8b6d4e715976d5683d29191488f8b8cb Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 18 Feb 2022 07:54:40 +0000 Subject: Fancy signs --- lsp.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lsp.lua') diff --git a/lsp.lua b/lsp.lua index 10d5471..b720dd0 100644 --- a/lsp.lua +++ b/lsp.lua @@ -26,6 +26,12 @@ local on_attach = function(client, bufnr) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'F', 'lua vim.lsp.buf.formatting()', opts) end +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 }) +end + -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches local servers = { 'pylsp' } -- cgit v1.2.3