Automatically fix and format Python files on save

This commit is contained in:
Danielle McLean 2023-12-05 21:33:30 +11:00
parent b8ba2362fb
commit 35eb1cfb17
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -111,6 +111,10 @@ g:markdown_fenced_languages = [
'python', 'php', 'scala',
]
g:ale_fixers = {
python: ['ruff', 'ruff_format'],
}
g:ale_fix_on_save = 1
g:ale_set_balloons = 1
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)