aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-02-18 07:54:40 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:31 +0100
commiteed3f93c8b6d4e715976d5683d29191488f8b8cb (patch)
tree493cc8a34c37bb222144933224300506d572f880
parent77cb4a8d7c3dcac52dab56f3005bde5310f74095 (diff)
downloaddotnvim-eed3f93c8b6d4e715976d5683d29191488f8b8cb.tar.gz
dotnvim-eed3f93c8b6d4e715976d5683d29191488f8b8cb.zip
Fancy signs
-rw-r--r--lsp.lua6
1 files changed, 6 insertions, 0 deletions
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', '<leader>F', '<cmd>lua vim.lsp.buf.formatting()<CR>', 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' }