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.
This commit is contained in:
parent
cf51aa4842
commit
8000173917
1 changed files with 7 additions and 4 deletions
|
|
@ -113,12 +113,12 @@ end
|
||||||
require("ionide").setup({ on_attach = on_attach, capabilities = capabilities })
|
require("ionide").setup({ on_attach = on_attach, capabilities = capabilities })
|
||||||
|
|
||||||
-- Change the diagnostic signs
|
-- Change the diagnostic signs
|
||||||
vim.fn.sign_define("DiagnosticSignHint", { text = "➤", texthl = "DiagnosticSignHint", numhl = "DiagnosticSignHint" })
|
vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint", numhl = "DiagnosticSignHint" })
|
||||||
vim.fn.sign_define("DiagnosticSignInfo", { text = "ℹ", texthl = "DiagnosticSignInfo", numhl = "DiagnosticSignInfo" })
|
vim.fn.sign_define("DiagnosticSignInfo", { text = "", texthl = "DiagnosticSignInfo", numhl = "DiagnosticSignInfo" })
|
||||||
vim.fn.sign_define("DiagnosticSignWarn", { text = "⚠", texthl = "DiagnosticSignWarn", numhl = "DiagnosticSignWarn" })
|
vim.fn.sign_define("DiagnosticSignWarn", { text = "", texthl = "DiagnosticSignWarn", numhl = "DiagnosticSignWarn" })
|
||||||
vim.fn.sign_define(
|
vim.fn.sign_define(
|
||||||
"DiagnosticSignError",
|
"DiagnosticSignError",
|
||||||
{ text = "✖", texthl = "DiagnosticSignError", numhl = "DiagnosticSignError" }
|
{ text = "", texthl = "DiagnosticSignError", numhl = "DiagnosticSignError" }
|
||||||
)
|
)
|
||||||
|
|
||||||
local border = "rounded"
|
local border = "rounded"
|
||||||
|
|
@ -132,6 +132,9 @@ vim.diagnostic.config {
|
||||||
focusable = false,
|
focusable = false,
|
||||||
border = border,
|
border = border,
|
||||||
},
|
},
|
||||||
|
virtual_text = {
|
||||||
|
prefix = " ",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.cmd [[set updatetime=1000]]
|
vim.cmd [[set updatetime=1000]]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue