leftovers
This commit is contained in:
@@ -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
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user