VIM: Adds fzf plugin
FZF is a fuzzy searcher that can be found here: https://github.com/junegunn/fzf I use it for a lot of things inside and outside vim
This commit is contained in:
parent
409d99d713
commit
2830500014
4 changed files with 13 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -22,3 +22,6 @@
|
||||||
[submodule "nvim/.config/nvim/pack/opt/gruvbox"]
|
[submodule "nvim/.config/nvim/pack/opt/gruvbox"]
|
||||||
path = nvim/.config/nvim/pack/bundle/opt/gruvbox
|
path = nvim/.config/nvim/pack/bundle/opt/gruvbox
|
||||||
url = https://github.com/morhetz/gruvbox.git
|
url = https://github.com/morhetz/gruvbox.git
|
||||||
|
[submodule "nvim/.config/nvim/pack/bundle/opt/fzf.vim"]
|
||||||
|
path = nvim/.config/nvim/pack/bundle/opt/fzf.vim
|
||||||
|
url = https://github.com/junegunn/fzf.vim
|
||||||
|
|
|
@ -3,6 +3,7 @@ let maplocalleader = "\\"
|
||||||
|
|
||||||
if has('packages')
|
if has('packages')
|
||||||
packadd! gruvbox
|
packadd! gruvbox
|
||||||
|
packadd! fzf.vim
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Enables filetype detection as well as filetype specific indent rules and
|
" Enables filetype detection as well as filetype specific indent rules and
|
||||||
|
|
1
nvim/.config/nvim/pack/bundle/opt/fzf.vim
Submodule
1
nvim/.config/nvim/pack/bundle/opt/fzf.vim
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 3348aef05d02828cd8b071ab29476af2029ea3d3
|
8
nvim/.config/nvim/plugin/fzf.vim
Normal file
8
nvim/.config/nvim/plugin/fzf.vim
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
" Prefixes all of the fzf commands
|
||||||
|
let g:fzf_command_prefix = 'Fzf'
|
||||||
|
" Mappings for common Fzf commands
|
||||||
|
nnoremap <leader>f = :FzfFiles<cr>
|
||||||
|
nnoremap <leader>b = :FzfBuffers<cr>
|
||||||
|
nnoremap <leader>h = :FzfHelptags<cr>
|
||||||
|
" The space is important at the end of this mapping
|
||||||
|
nnoremap <leader>/ = :FzfRg
|
Loading…
Add table
Add a link
Reference in a new issue