diff --git a/nvim/.config/nvim/after/plugin/fzf.vim b/nvim/.config/nvim/after/plugin/fzf.vim new file mode 100644 index 0000000..482b15b --- /dev/null +++ b/nvim/.config/nvim/after/plugin/fzf.vim @@ -0,0 +1,22 @@ +nnoremap b :Buffers +nnoremap / :GFiles? +nnoremap ff :GFiles +nnoremap fF :Files +nnoremap fL :Lines +nnoremap fl :BLines +nnoremap ft :exe ':Tags ' . expand('') +nnoremap fT :Tags +nnoremap fc :BCommits +nnoremap fC :Commits +nnoremap fh :History: +nnoremap fH :History/ +nnoremap fm :Commands +nnoremap fo :Locate +nnoremap fk :Maps +nnoremap f/ :Rg +nnoremap fs :exe ':Rg ' . expand('') + +imap (fzf-complete-word) +imap (fzf-complete-path) +imap (fzf-complete-file) +imap (fzf-complete-line) diff --git a/nvim/.config/nvim/after/plugin/gitgutter.vim b/nvim/.config/nvim/after/plugin/gitgutter.vim new file mode 100644 index 0000000..14897fc --- /dev/null +++ b/nvim/.config/nvim/after/plugin/gitgutter.vim @@ -0,0 +1,11 @@ +nnoremap ]c :GitGutterNextHunk +nnoremap [c :GitGutterPrevHunk +nnoremap ghs :GitGutterStageHunk +nnoremap ghu :GitGutterUndoHunk +nnoremap ghp :GitGutterPreviewHunk +nnoremap ghq :GitGutterQuickFix +nnoremap ghf :GitGutterFold +omap ih (GitGutterTextObjectInnerPending) +omap ah (GitGutterTextObjectOuterPending) +xmap ih (GitGutterTextObjectInnerVisual) +xmap ah (GitGutterTextObjectOuterVisual) diff --git a/nvim/.config/nvim/keymappings.vim b/nvim/.config/nvim/keymappings.vim index fcba047..160c0d1 100644 --- a/nvim/.config/nvim/keymappings.vim +++ b/nvim/.config/nvim/keymappings.vim @@ -11,28 +11,6 @@ nnoremap Q nnoremap b :Make nnoremap B :LMake -" For Fuzzy -nnoremap b :Buffers -nnoremap / :GFiles? -nnoremap ff :GFiles -nnoremap fF :Files -nnoremap fL :Lines -nnoremap fl :BLines -nnoremap ft :exe ':Tags ' . expand('') -nnoremap fT :Tags -nnoremap fc :BCommits -nnoremap fC :Commits -nnoremap fh :History: -nnoremap fH :History/ -nnoremap fm :Commands -nnoremap fo :Locate -nnoremap fk :Maps -nnoremap f/ :Rg -nnoremap fs :exe ':Rg ' . expand('') -imap (fzf-complete-word) -imap (fzf-complete-path) -imap (fzf-complete-file) -imap (fzf-complete-line) " Save nnoremap w :w " Search and Replace @@ -59,18 +37,6 @@ nnoremap ]t :tNext nnoremap [T :tfirst nnoremap ]T :tlast nnoremap ts :exec("tselect ".expand("")) -" For git -nnoremap ]c :GitGutterNextHunk -nnoremap [c :GitGutterPrevHunk -nnoremap ghs :GitGutterStageHunk -nnoremap ghu :GitGutterUndoHunk -nnoremap ghp :GitGutterPreviewHunk -nnoremap ghq :GitGutterQuickFix -nnoremap ghf :GitGutterFold -omap ih (GitGutterTextObjectInnerPending) -omap ah (GitGutterTextObjectOuterPending) -xmap ih (GitGutterTextObjectInnerVisual) -xmap ah (GitGutterTextObjectOuterVisual) " For workspace nnoremap ps :ToggleWorkspace " Quickfix & Location list mappings