1
0
Fork 0

nvim: use icons for diagnostics

This commit is contained in:
tastytea 2022-08-25 15:41:30 +02:00
parent 1229f7a228
commit 11a6d895fb
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 7 additions and 0 deletions

View File

@ -81,3 +81,10 @@ require('project_nvim').setup({
show_hidden = false,
fallback_buffer_dir = true
})
-- icons for diagnostics in the symbol column
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