Added signs for lsp info/warning/error

This commit is contained in:
Oliver Hartmann 2021-10-12 23:44:57 +02:00
parent ad10e32e09
commit 505a55df18

View File

@ -91,3 +91,9 @@ for _, lsp in ipairs(servers) do
capabilities = capabilities,
}
end
local signs = { Error = "", Warning = "", Hint = "", Information = "" }
for type, icon in pairs(signs) do
local hl = "LspDiagnosticsSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
end