All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 let python_highlight_all=1
7 let &l:textwidth=g:linelength
10 setlocal formatoptions+=bl
12 imap <Leader>t import ipdb; ipdb.set_trace() # noqa:E402,E702 # fmt: skip
13 imap <Leader>m if __name__ == "__main__":<CR>import sys<CR>sys.exit()<ESC>i
15 if executable('ruffxx')
16 au User lsp_setup call lsp#register_server({
18 \ 'cmd': {server_info->['ruff', 'server']},
19 \ 'allowlist': ['python'],
20 \ 'workspace_config': {},
24 if executable('pylsp')
25 au User lsp_setup call lsp#register_server({
27 \ 'cmd': {server_info->['pylsp']},
28 \ 'allowlist': ['python'],
29 \ 'workspace_config': {},
33 let b:ale_linters = ["mypy", "vim-lsp", "ruff"]
35 \ "add_blank_lines_for_python_control_statements",
40 let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
42 imap <silent> <F7> :ALELint<CR>
43 nmap <silent> <F7> :ALELint<CR>
44 imap <silent> <F8> :ALEFix<CR>
45 nmap <silent> <F8> :ALEFix<CR>
47 nmap <silent> <C-k> <Plug>(ale_previous_wrap)
48 nmap <silent> <C-j> <Plug>(ale_next_wrap)
50 inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
51 inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
52 inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() : "\<cr>"
54 let g:asyncomplete_auto_popup = 1
56 imap <c-@> <Plug>(asyncomplete_force_refresh)