From 80001739171c712ab5c89b1bbb4de63a124cfe37 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Thu, 28 Nov 2024 18:11:19 +0000 Subject: [PATCH] refactor(vim): update the diagnostic sign icons This uses different icons to try and make things look a bit more cool. The look of vim is not something I have really been focused on however, I think it may be time to spice things up. --- site-modules/core/files/vim/plugin/lsp.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/site-modules/core/files/vim/plugin/lsp.lua b/site-modules/core/files/vim/plugin/lsp.lua index 68122c0..0387d66 100644 --- a/site-modules/core/files/vim/plugin/lsp.lua +++ b/site-modules/core/files/vim/plugin/lsp.lua @@ -113,12 +113,12 @@ end require("ionide").setup({ on_attach = on_attach, capabilities = capabilities }) -- Change the diagnostic signs -vim.fn.sign_define("DiagnosticSignHint", { text = "➤", texthl = "DiagnosticSignHint", numhl = "DiagnosticSignHint" }) -vim.fn.sign_define("DiagnosticSignInfo", { text = "ℹ", texthl = "DiagnosticSignInfo", numhl = "DiagnosticSignInfo" }) -vim.fn.sign_define("DiagnosticSignWarn", { text = "⚠", texthl = "DiagnosticSignWarn", numhl = "DiagnosticSignWarn" }) +vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint", numhl = "DiagnosticSignHint" }) +vim.fn.sign_define("DiagnosticSignInfo", { text = "", texthl = "DiagnosticSignInfo", numhl = "DiagnosticSignInfo" }) +vim.fn.sign_define("DiagnosticSignWarn", { text = "", texthl = "DiagnosticSignWarn", numhl = "DiagnosticSignWarn" }) vim.fn.sign_define( "DiagnosticSignError", - { text = "✖", texthl = "DiagnosticSignError", numhl = "DiagnosticSignError" } + { text = "", texthl = "DiagnosticSignError", numhl = "DiagnosticSignError" } ) local border = "rounded" @@ -132,6 +132,9 @@ vim.diagnostic.config { focusable = false, border = border, }, + virtual_text = { + prefix = " ", + }, } vim.cmd [[set updatetime=1000]]