disable spell in dashboard

This commit is contained in:
Christoph J. Scherr 2025-06-29 17:20:03 +02:00
parent 478a16e9f1
commit 0721e7fac7
Signed by: PlexSheep
GPG key ID: 9EB784BB202BB7BB

View file

@ -544,8 +544,7 @@ return {
local label = {} local label = {}
for severity, icon in pairs(icons) do for severity, icon in pairs(icons) do
local n = #vim.diagnostic.get(props.buf, local n = #vim.diagnostic.get(props.buf, { severity = vim.diagnostic.severity[string.upper(severity)] })
{ severity = vim.diagnostic.severity[string.upper(severity)] })
if n > 0 then if n > 0 then
table.insert(label, { icon .. ' ' .. n .. ' ', group = 'DiagnosticSign' .. severity }) table.insert(label, { icon .. ' ' .. n .. ' ', group = 'DiagnosticSign' .. severity })
end end
@ -643,6 +642,7 @@ return {
callback = function() callback = function()
vim.b.minitrailspace_disable = true vim.b.minitrailspace_disable = true
vim.opt_local.list = false vim.opt_local.list = false
vim.opt_local.spell = false
vim.opt_local.colorcolumn = '0' vim.opt_local.colorcolumn = '0'
end, end,
}) })