summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam.moloney.stuck@gmail.com>2022-04-18 22:54:53 +0200
committeradamstuck <adam.moloney.stuck@gmail.com>2022-04-19 08:56:29 +0200
commit4660266b1b58f7023a4463853b26f786d67646ab (patch)
tree7a1d69700dc86fb2d7d8fc5d1a1219ed76819edc
parent4b042c6ed6a802b8f48b78d9ddd138b3c6416973 (diff)
nvim: use icons for lsp diagnostics in gutter
-rw-r--r--.config/nvim/lua/setup/nvim-lsp-installer.lua6
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