Add CTRL-P plugin to nvim
This commit is contained in:
parent
b4ea47ffef
commit
679255a184
14
nvim/ack
14
nvim/ack
@ -1,4 +1,12 @@
|
|||||||
let g:ackprg = 'ag --vimgrep --smart-case' " Use the_silver_searcher for Ack
|
if executable('ag')
|
||||||
|
let g:ackprg = 'ag --vimgrep --smart-case' " Use the_silver_searcher for Ack
|
||||||
|
|
||||||
noremap \ :Ack<Space>
|
noremap \ :Ack<Space>
|
||||||
noremap <Leader>\ :Ack <C-r><C-w><CR>
|
noremap <Leader>\ :Ack <C-r><C-w><CR>
|
||||||
|
|
||||||
|
" Use Ag over Grep
|
||||||
|
set grepprg=ag\ --nogroup\ --nocolor
|
||||||
|
|
||||||
|
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
|
||||||
|
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
|
||||||
|
endif
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
" Assorted plugins
|
" Assorted plugins
|
||||||
Plug 'cespare/vim-toml'
|
Plug 'cespare/vim-toml'
|
||||||
|
Plug 'ctrlpvim/ctrlp.vim'
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
Plug 'leafgarland/typescript-vim'
|
Plug 'leafgarland/typescript-vim'
|
||||||
Plug 'mileszs/ack.vim'
|
Plug 'mileszs/ack.vim'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user