From 56758415b40197ff1e7dab653ab24af58727aa4e Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Sat, 17 Aug 2024 18:37:18 -0300 Subject: Feat: update all --- lua/config/diagnostic.lua | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'lua/config/diagnostic.lua') diff --git a/lua/config/diagnostic.lua b/lua/config/diagnostic.lua index 67465ae..84d57b5 100644 --- a/lua/config/diagnostic.lua +++ b/lua/config/diagnostic.lua @@ -1,9 +1,28 @@ + vim.diagnostic.config { virtual_text = false, + signs = { + text = { + [vim.diagnostic.severity.ERROR] = '', + [vim.diagnostic.severity.WARN] = '', + [vim.diagnostic.severity.INFO] = '', + [vim.diagnostic.severity.HINT] = '', + }, + linehl = { + [vim.diagnostic.severity.ERROR] = 'ErrorMsg', + }, + numhl = { + [vim.diagnostic.severity.WARN] = 'WarningMsg', + }, + }, } -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 = "" }) -end +-- vim.diagnostic.config { +-- virtual_text = false, +-- } +-- +-- 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 = "" }) +-- end -- cgit v1.2.3