1
1
Fork 0

correct sign-define deprecation warning

This commit is contained in:
Ava Gaiety W 2025-06-21 18:55:28 -06:00
parent 4351d4162d
commit ea2aed44ff

View file

@ -50,21 +50,8 @@ return {
-- Diagnostics -- Diagnostics
--- ---
local sign = function(opts)
vim.fn.sign_define(opts.name, {
texthl = opts.name,
text = opts.text,
numhl = ''
})
end
sign({ name = 'DiagnosticSignError', text = '' })
sign({ name = 'DiagnosticSignWarn', text = '' })
sign({ name = 'DiagnosticSignHint', text = '' })
sign({ name = 'DiagnosticSignInfo', text = '' })
vim.diagnostic.config({ vim.diagnostic.config({
virtual_text = false, virtual_text = true,
severity_sort = true, severity_sort = true,
float = { float = {
border = 'rounded', border = 'rounded',