diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2024-08-17 18:37:18 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2024-08-17 18:37:18 -0300 |
| commit | 56758415b40197ff1e7dab653ab24af58727aa4e (patch) | |
| tree | 7540fa0d34e1c07adb26eb3aa59e529e7ea189a4 /lua/config/diagnostic.lua | |
| parent | 41d3fb238db45b38b2ddb1635f45f098bd963ad2 (diff) | |
| download | nvim-conf-56758415b40197ff1e7dab653ab24af58727aa4e.tar.gz nvim-conf-56758415b40197ff1e7dab653ab24af58727aa4e.zip | |
Feat: update all
Diffstat (limited to 'lua/config/diagnostic.lua')
| -rw-r--r-- | lua/config/diagnostic.lua | 29 |
1 files changed, 24 insertions, 5 deletions
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 |