nvim: del v0.11 migrations.lua, lazydev support

This commit is contained in:
js0ny 2025-10-29 03:26:29 +00:00
parent 7540d37422
commit 6fb3efd1dc
11 changed files with 80 additions and 92 deletions

View file

@ -1,8 +1,16 @@
local signs = require("config.icons").diagnostics
local dsigns = require("config.icons").diagnostics
-- This provides the diagnostics signs near the line numbers
for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
vim.diagnostic.config(hl, { text = icon, texthl = hl, numhl = "" })
end
vim.diagnostic.config({
virtual_text = true,
virtual_lines = false,
severity_sort = true,
update_in_insert = true,
float = true,
signs = {
text = {
[vim.diagnostic.severity.HINT] = dsigns.Hint,
[vim.diagnostic.severity.WARN] = dsigns.Warning,
[vim.diagnostic.severity.ERROR] = dsigns.Error,
},
},
})