Modified pycodestyle to use 110 lenght

This commit is contained in:
Eduardo Cueto-Mendoza 2024-09-20 11:24:45 +01:00
parent a3c186d2ef
commit 781856e48d
2 changed files with 76 additions and 4 deletions

View File

@ -173,7 +173,31 @@ then
require('lspconfig').ocamllsp.setup({}) require('lspconfig').ocamllsp.setup({})
require('lspconfig').pylsp.setup({}) require('lspconfig').pylsp.setup {
settings = {
pylsp = {
plugins = {
-- formatter options
black = { enabled = true },
autopep8 = { enabled = false },
yapf = { enabled = false },
-- linter options
pylint = { enabled = false, executable = "pylint" },
pyflakes = { enabled = false },
pycodestyle = { enabled = true, maxLineLength = 110 },
-- type checker
pylsp_mypy = { enabled = true },
-- auto-completion options
jedi_completion = { fuzzy = true },
-- import sorting
pyls_isort = { enabled = true },
},
},
},
flags = {
debounce_text_changes = 200,
},
}
require('lspconfig').rust_analyzer.setup({ require('lspconfig').rust_analyzer.setup({
settings = { settings = {
@ -196,7 +220,31 @@ then
require('lspconfig').ocamllsp.setup({}) require('lspconfig').ocamllsp.setup({})
require('lspconfig').pylsp.setup({}) require('lspconfig').pylsp.setup {
settings = {
pylsp = {
plugins = {
-- formatter options
black = { enabled = true },
autopep8 = { enabled = false },
yapf = { enabled = false },
-- linter options
pylint = { enabled = false, executable = "pylint" },
pyflakes = { enabled = false },
pycodestyle = { enabled = true, maxLineLength = 110 },
-- type checker
pylsp_mypy = { enabled = true },
-- auto-completion options
jedi_completion = { fuzzy = true },
-- import sorting
pyls_isort = { enabled = true },
},
},
},
flags = {
debounce_text_changes = 200,
},
}
require('lspconfig').rust_analyzer.setup({ require('lspconfig').rust_analyzer.setup({
settings = { settings = {
@ -275,7 +323,31 @@ then
require('lspconfig').ocamllsp.setup({}) require('lspconfig').ocamllsp.setup({})
require('lspconfig').pylsp.setup({}) require('lspconfig').pylsp.setup {
settings = {
pylsp = {
plugins = {
-- formatter options
black = { enabled = true },
autopep8 = { enabled = false },
yapf = { enabled = false },
-- linter options
pylint = { enabled = false, executable = "pylint" },
pyflakes = { enabled = false },
pycodestyle = { enabled = true, maxLineLength = 110 },
-- type checker
pylsp_mypy = { enabled = true },
-- auto-completion options
jedi_completion = { fuzzy = true },
-- import sorting
pyls_isort = { enabled = true },
},
},
},
flags = {
debounce_text_changes = 200,
},
}
require('lspconfig').rust_analyzer.setup({ require('lspconfig').rust_analyzer.setup({
settings = { settings = {

View File

@ -49,7 +49,7 @@ then
vim.opt.updatetime = 50 vim.opt.updatetime = 50
vim.opt.colorcolumn = "80" vim.opt.colorcolumn = "110"
-- LSP options -- LSP options
vim.diagnostic.config({ vim.diagnostic.config({