Switch to fzf, remove vim-ripgrep
This commit is contained in:
parent
f78e30c7ed
commit
eb071660a1
|
@ -20,8 +20,14 @@ nnoremap <silent> dq :GoDebugStop<cr>
|
|||
nnoremap <silent> dn :GoDebugNext<cr>
|
||||
nnoremap <silent> ds :GoDebugStep<cr>
|
||||
|
||||
" fzf configuration:
|
||||
let g:fzf_action = {
|
||||
\ 'ctrl-t': 'tab split',
|
||||
\ 'ctrl-x': 'split',
|
||||
\ 'ctrl-v': 'vsplit' }
|
||||
|
||||
" Vim-Go configuration:
|
||||
let g:go_decls_mode = 'skim'
|
||||
let g:go_decls_mode = 'fzf'
|
||||
let g:go_fmt_autosave = 0
|
||||
" Vim-Go seems to handle fix-on-save better than ALE:
|
||||
let g:go_imports_autosave = 1
|
||||
|
|
23
vimrc
23
vimrc
|
@ -124,19 +124,6 @@ endfunction
|
|||
nmap <silent> <leader>q :call ToggleQuickFix()<cr>
|
||||
nmap <silent> <leader>l :lclose<cr>
|
||||
|
||||
" vim-ripgrep configuration:
|
||||
let g:rg_highlight = 1
|
||||
function RequestGrep()
|
||||
call inputsave()
|
||||
let s:pattern = trim(input("grep: "))
|
||||
call inputrestore()
|
||||
if len(s:pattern) > 0
|
||||
execute 'Rg' s:pattern
|
||||
endif
|
||||
endfunction
|
||||
map <Leader>* :call RequestGrep()<CR>
|
||||
map <Leader>8 :call RequestGrep()<CR>
|
||||
|
||||
" deoplete configuration
|
||||
packadd! deoplete.nvim
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
|
@ -157,9 +144,10 @@ inoremap <expr><C-]> pumvisible() ? "\<C-]>" : "\<Enter>"
|
|||
" vim-markdown configuration:
|
||||
let g:vim_markdown_conceal = 1
|
||||
|
||||
" Skim configuration:
|
||||
" fzf configuration:
|
||||
nmap <leader>t :GFiles<cr>
|
||||
nmap <leader>b :Buffers<cr>
|
||||
nmap <leader>gg :Rg<cr>
|
||||
|
||||
" Lightline configuration:
|
||||
set laststatus=2
|
||||
|
@ -265,11 +253,10 @@ packadd! lightline.vim
|
|||
packadd! tmux-complete.vim
|
||||
packadd! vim-commentary
|
||||
packadd! vim-gitgutter
|
||||
" Requires both skim.vim plugin to be manually installed:
|
||||
" https://github.com/lotabout/skim/blob/master/plugin/skim.vim
|
||||
" Requires both fzf.vim plugin to be manually installed:
|
||||
" https://github.com/junegunn/fzf/blob/master/plugin/fzf.vim
|
||||
" and also this separate plugin, which is loaded here:
|
||||
" https://github.com/lotabout/skim.vim/blob/master/autoload/fzf/vim.vim
|
||||
packadd! skim.vim
|
||||
packadd! fzf.vim
|
||||
packadd! vim-go
|
||||
packadd! vim-surround
|
||||
packadd! vim-yaml-folds
|
||||
|
|
Loading…
Reference in New Issue