This commit is contained in:
ch1bs 2024-08-03 22:32:59 +03:00
parent d1a430248a
commit c779245033
3 changed files with 43 additions and 2 deletions

View file

@ -584,6 +584,21 @@ require('lazy').setup({
-- But for many setups, the LSP (`tsserver`) will work just fine
-- tsserver = {},
--
--
pylsp = {
settings = {
pylsp = {
plugins = {
pycodestyle = {
maxLineLength = 120,
},
flake8 = {
maxLineLength = 120,
}
}
}
}
},
lua_ls = {
-- cmd = {...},
@ -646,7 +661,7 @@ require('lazy').setup({
},
},
opts = {
notify_on_error = false,
notify_on_error = true,
format_on_save = function(bufnr)
-- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional
@ -659,6 +674,7 @@ require('lazy').setup({
end,
formatters_by_ft = {
lua = { 'stylua' },
python = { 'black', args = { "--line-length", "120" } },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
--