Replace autopep8 by ruff formatter
This commit is contained in:
parent
06e1bd1c2e
commit
a4b9fc3cf9
@ -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
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user