leftovers

This commit is contained in:
Zackarias Montell
2025-06-10 16:39:00 +02:00
parent 437b94dce1
commit 4857157d2c
5 changed files with 36 additions and 22 deletions

View File

@@ -522,20 +522,20 @@ require('lazy').setup({
[vim.diagnostic.severity.HINT] = '󰌶 ',
},
} or {},
-- virtual_text = {
-- source = 'if_many',
-- spacing = 2,
-- format = function(diagnostic)
-- local diagnostic_message = {
-- [vim.diagnostic.severity.ERROR] = diagnostic.message,
-- [vim.diagnostic.severity.WARN] = diagnostic.message,
-- [vim.diagnostic.severity.INFO] = diagnostic.message,
-- [vim.diagnostic.severity.HINT] = diagnostic.message,
-- }
-- return diagnostic_message[diagnostic.severity]
-- end,
-- },
virtual_lines = true,
virtual_text = {
source = 'if_many',
spacing = 2,
format = function(diagnostic)
local diagnostic_message = {
[vim.diagnostic.severity.ERROR] = diagnostic.message,
[vim.diagnostic.severity.WARN] = diagnostic.message,
[vim.diagnostic.severity.INFO] = diagnostic.message,
[vim.diagnostic.severity.HINT] = diagnostic.message,
}
return diagnostic_message[diagnostic.severity]
end,
},
-- virtual_lines = true,
}
local servers = {
@@ -597,7 +597,7 @@ require('lazy').setup({
pylsp = {
plugins = {
pycodestyle = {
ignore = { 'E501' }, -- ignore line length, let black formatter manage this, sometimes lines must be long.
ignore = { 'E501', 'E503' }, -- ignore line length, let black formatter manage this, sometimes lines must be long, ignore cr before binary operator
},
},
},