Browse Source

nvim: add "find in git status" shortcut

refactor/nvim-lua
Garrit Franke 3 years ago
parent
commit
0a39752d20
Signed by: garrit
GPG Key ID: 65586C4DDA55EA2C
  1. 4
      .config/nvim/init.vim
  2. 1
      README.md

4
.config/nvim/init.vim

@ -280,6 +280,10 @@ vnoremap <C-F> <cmd>Telescope live_grep<cr>
nnoremap <C-p> <cmd>Telescope find_files<CR>
vnoremap <C-p> <cmd>Telescope find_files<CR>
" ctrl c (Find in git status)
nnoremap <C-s> <cmd>Telescope git_status<CR>
vnoremap <C-s> <cmd>Telescope git_status<CR>
" Use yank to copy to clipboard
vnoremap y "*y

1
README.md

@ -30,3 +30,4 @@ This list is incomplete, but I try to keep it up to date.
| `<leader>g.` | Go to next change in file |
| `<leader>g,` | Go to previous change in file |
| `<leader>gx` | Undo change under cursor |
| `<ctrl>s` | Search through all changes |

Loading…
Cancel
Save