add lsp signs in gutter

This commit is contained in:
Anish Lakhwara 2022-06-17 11:25:22 +10:00
parent 3f1c32e7e1
commit 0556e7d2c0

View file

@ -313,6 +313,11 @@ in
" lua config " lua config
lua <<EOF lua <<EOF
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
vim.g.diagnostics_active = true vim.g.diagnostics_active = true
function _G.toggle_diagnostics() function _G.toggle_diagnostics()
if vim.g.diagnostics_active then if vim.g.diagnostics_active then