Commit 11747b43a5ab6808177b5d5d30759a712a115061 Parent: 45f27b6d2e8da83703c04bca8f5fd3b14122824c Author: Matt Colligan <matthewcolligan@improbable.io> Date: 2024-10-12 12:11:49 +0100 Committer: Matt Colligan <matthewcolligan@improbable.io> Committed: 2024-10-12 12:11:49 +0100 more changes
start/self/plugin/keybindings.vim Modified
@@ -87,7 +87,7 @@ nnoremap vs :vsp<CR> " toggle spell checking -nnoremap <leader>S :setlocal spell! spelllang=en_gb spell?<CR>:echo "zg to add new word"<CR> +"nnoremap <leader>S :setlocal spell! spelllang=en_gb spell?<CR>:echo "zg to add new word"<CR> " toggle [ ] tick box on current line with ctrl-space "function! ToggleTodo() @@ -125,7 +125,7 @@ " 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> +nmap <silent> <C-S-f> <Plug>(ale_fix) " Github copilot "imap <silent> <S-Tab> <Plug>(copilot-next) @@ -139,4 +139,15 @@ xnoremap <leader>g :AnyJumpVisual<CR> " blamer -nnoremap <C-b> :BlamerToggle<CR> +nnoremap <A-b> :BlamerToggle<CR> + +" add python breakpoint: vim function that checks for 'breakpoint' in the current line and removes this line if it exists, otherwise adds a new line on this line with breakpoint() on it +function! Breakpoint() + let l:line = getline('.') + if match(l:line, 'breakpoint') != -1 + execute 'normal! dd' + else + execute 'normal! Obreakpoint()' + endif +endfunction +nnoremap <C-b> :call Breakpoint()<CR>
start/self/plugin/init.lua Modified
@@ -1,6 +1,11 @@ # neovim lua config -require("supermaven-nvim").setup({}) +require("supermaven-nvim").setup({ + keymaps = { + accept_suggestion = "<Tab>", + clear_suggestion = "<S-Tab>", + } +}) require('lualine').setup({ options = { section_separators = '', component_separators = '' }