From 5455aacdedfb2829f000b2f120a6d5194d1227f8 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 22 Jan 2023 10:18:07 +0100 Subject: feat: big change on the structure of the plugins, move several things to config dir --- lua/config/diagnostic.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lua/config/diagnostic.lua (limited to 'lua/config/diagnostic.lua') diff --git a/lua/config/diagnostic.lua b/lua/config/diagnostic.lua new file mode 100644 index 0000000..7d56f1c --- /dev/null +++ b/lua/config/diagnostic.lua @@ -0,0 +1,9 @@ +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