aboutsummaryrefslogtreecommitdiffstats
path: root/lua/config/diagnostic.lua
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2024-08-17 18:37:18 -0300
committerElvis Claros Castro <elvis@claros.ar>2024-08-17 18:37:18 -0300
commit56758415b40197ff1e7dab653ab24af58727aa4e (patch)
tree7540fa0d34e1c07adb26eb3aa59e529e7ea189a4 /lua/config/diagnostic.lua
parent41d3fb238db45b38b2ddb1635f45f098bd963ad2 (diff)
downloadnvim-conf-56758415b40197ff1e7dab653ab24af58727aa4e.tar.gz
nvim-conf-56758415b40197ff1e7dab653ab24af58727aa4e.zip
Feat: update all
Diffstat (limited to 'lua/config/diagnostic.lua')
-rw-r--r--lua/config/diagnostic.lua29
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