My vim configuration
git clone https://github.com/m-col/vim-misc
Files | Refs | Readme

Commit 74505e06df01bd0048b5c758a9d5d11bd9f83ccd
Parent: 369e543fd2ccc87c1e352d2046b5de52fa0a80c7
Author: Matt Colligan <matthewcolligan@improbable.io>
Date: 2023-07-31 23:50:02 +0100
Committer: Matt Colligan <matthewcolligan@improbable.io>
Committed: 2023-07-31 23:50:02 +0100

add some settings

start/self/plugin/settings.vim Modified

@@ -75,17 +75,19 @@
 
 runtime macros/emoji-ab.vim
 
-"\   'python': ['flake8', 'mypy'],
+" Only linters listed explicitly will be run.
+let g:ale_linters_explicit = 1
 let g:ale_linters = {
 \   'haskell': ['hlint'],
+\   'python': ['flake8', 'mypy', 'ruff'],
 \}
-let g:ale_linters_explicit = 1
-let g:ale_lint_on_text_changed = 'never'
-let g:ale_lint_on_insert_leave = 0
+" Don't show errors in virtual text or signs column; rely on echoed message instead
+let g:ale_virtualtext_cursor = 0
+let g:ale_set_signs = 0
 "let g:ale_command_wrapper = 'nice -n5'
 let g:ale_fixers = {
 \   'haskell': ['ormolu'],
-\   'python': ['black', 'isort'],
+\   'python': ['black', 'ruff'],
 \}
 "\   'markdown': ['prettier'],
 
@@ -93,3 +95,6 @@
 let g:vim_markdown_conceal_code_blocks = 0
 let g:vim_json_conceal=0
 let g:markdown_syntax_conceal=0
+
+let g:any_jump_references_only_for_current_filetype = 1
+let g:any_jump_disable_vcs_ignore = 1

start/self/plugin/keybindings.vim Modified

@@ -126,3 +126,12 @@
 " ALE navigation
 nmap <silent> <C-S-k> <Plug>(ale_previous_wrap)
 nmap <silent> <C-S-j> <Plug>(ale_next_wrap)
+nmap <silent> <C-S-f> :ALEFix<CR>
+
+" Github copilot
+imap <silent> <S-Tab> <Plug>(copilot-next)
+
+" any-jump
+let g:any_jump_disable_default_keybindings = 1
+nnoremap <leader>g :AnyJump<CR>
+xnoremap <leader>g :AnyJumpVisual<CR>