From 605048dda6dc0ab6596bf9b76a6212cedf80a497 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 18 Dec 2022 18:44:30 +0100 Subject: feat several improvements --- lua/alpha/diagnostic.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lua/alpha/diagnostic.lua (limited to 'lua/alpha/diagnostic.lua') diff --git a/lua/alpha/diagnostic.lua b/lua/alpha/diagnostic.lua new file mode 100644 index 0000000..543732f --- /dev/null +++ b/lua/alpha/diagnostic.lua @@ -0,0 +1,12 @@ +vim.keymap.set("n", "vn", vim.diagnostic.goto_next, {}) +vim.keymap.set("n", "vp", vim.diagnostic.goto_prev, {}) + +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