let python_highlight_all=1 let g:linelength = 88 setlocal sw=4 setlocal sts=4 let &l:textwidth=g:linelength setlocal autoindent setlocal formatoptions+=bl imap t import ipdb; ipdb.set_trace() # noqa:E402,E702 # fmt: skip imap m if __name__ == "__main__":import syssys.exit()i if executable('ruffxx') au User lsp_setup call lsp#register_server({ \ 'name': 'ruff', \ 'cmd': {server_info->['ruff', 'server']}, \ 'allowlist': ['python'], \ 'workspace_config': {}, \ }) endif if executable('pylsp') au User lsp_setup call lsp#register_server({ \ 'name': 'pylsp', \ 'cmd': {server_info->['pylsp']}, \ 'allowlist': ['python'], \ 'workspace_config': {}, \ }) endif let b:ale_linters = ["mypy", "vim-lsp", "ruff"] let b:ale_fixers = [ \ "add_blank_lines_for_python_control_statements", \ "ruff", \ "ruff_format" \] let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' imap :ALELint nmap :ALELint imap :ALEFix nmap :ALEFix nmap (ale_previous_wrap) nmap (ale_next_wrap) inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? asyncomplete#close_popup() : "\" let g:asyncomplete_auto_popup = 1 imap (asyncomplete_force_refresh) setlocal scl=no