aboutsummaryrefslogtreecommitdiffstats
path: root/lua/config/diagnostic.lua
diff options
context:
space:
mode:
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