From 4660266b1b58f7023a4463853b26f786d67646ab Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 18 Apr 2022 22:54:53 +0200 Subject: nvim: use icons for lsp diagnostics in gutter --- .config/nvim/lua/setup/nvim-lsp-installer.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/nvim/lua/setup/nvim-lsp-installer.lua b/.config/nvim/lua/setup/nvim-lsp-installer.lua index a4322ba..edcc24d 100644 --- a/.config/nvim/lua/setup/nvim-lsp-installer.lua +++ b/.config/nvim/lua/setup/nvim-lsp-installer.lua @@ -13,6 +13,12 @@ lsp_installer.on_server_ready(function(server) end, } + 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 + -- (optional) Customize the options passed to the server -- if server.name == "tsserver" then -- opts.root_dir = function() ... end -- cgit v1.2.3-70-g09d2