From 11a6d895fbc5b73e2d334cb9bb3b41c986e5d0cf Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 25 Aug 2022 15:41:30 +0200 Subject: [PATCH] nvim: use icons for diagnostics --- .config/nvim/lua/my/coding.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/nvim/lua/my/coding.lua b/.config/nvim/lua/my/coding.lua index eb26e2b..eaa1b92 100644 --- a/.config/nvim/lua/my/coding.lua +++ b/.config/nvim/lua/my/coding.lua @@ -81,3 +81,10 @@ require('project_nvim').setup({ show_hidden = false, fallback_buffer_dir = true }) + +-- icons for diagnostics in the symbol column +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 = hl }) +end