diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2022-04-18 22:54:53 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2022-04-18 22:54:53 +0200 |
commit | 0befb3cd13374af3e3a7e42db6f65af1289476a2 (patch) | |
tree | bf0ce34d43a178b17d24487304ed5e0a02d026c0 | |
parent | 8c2adae23708bc792c708b24c8ef08152b3e4ff2 (diff) |
nvim: use icons for lsp diagnostics in gutter
-rw-r--r-- | .config/nvim/lua/setup/nvim-lsp-installer.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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 |