Replace autopep8 by ruff formatter

This commit is contained in:
Andreas Tsouchlos 2025-07-25 14:21:48 -04:00
parent 06e1bd1c2e
commit a4b9fc3cf9

View File

@ -13,13 +13,16 @@ return {
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = "python", pattern = "python",
callback = function() callback = function()
vim.g.neoformat_python_autopep8 = { -- vim.g.neoformat_python_autopep8 = {
exe = 'autopep8', -- exe = 'autopep8',
args = {'--max-line-length', '79', '--experimental'}, -- args = {'--max-line-length', '79', '--experimental'},
-- replace = 1 -- -- replace = 1
} -- }
-- vim.g.neoformat_enabled_python = {
-- 'autopep8'
-- }
vim.g.neoformat_enabled_python = { vim.g.neoformat_enabled_python = {
'autopep8' 'ruff'
} }
end end
}) })