diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-02-18 07:54:40 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-05-29 22:57:31 +0100 |
commit | eed3f93c8b6d4e715976d5683d29191488f8b8cb (patch) | |
tree | 493cc8a34c37bb222144933224300506d572f880 | |
parent | 77cb4a8d7c3dcac52dab56f3005bde5310f74095 (diff) | |
download | dotnvim-eed3f93c8b6d4e715976d5683d29191488f8b8cb.tar.gz dotnvim-eed3f93c8b6d4e715976d5683d29191488f8b8cb.zip |
Fancy signs
-rw-r--r-- | lsp.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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' } |