update nvim telescope config
This commit is contained in:
parent
d784acc82a
commit
e94b86c137
5 changed files with 40 additions and 56 deletions
10
.vimrc
10
.vimrc
|
|
@ -1013,10 +1013,10 @@ nnoremap <silent> <Leader>aa :<C-u>RgRoot!<CR>
|
|||
"nnoremap <silent> <Leader>aw :<C-u>RgRoot! <C-r><C-w><CR>
|
||||
"nnoremap <C-l> :<C-u>Files! `git rev-parse --show-toplevel`<CR>
|
||||
"nnoremap <C-k> :<C-u>GFiles<CR>
|
||||
nnoremap <silent> <C-k> <cmd>lua file_list{}<cr>
|
||||
nnoremap <silent> <Leader>ag <cmd>lua live_grep_repo{ word_match = "-w", only_sort_text = true, search = ''}<cr>
|
||||
nnoremap <silent> <Leader>aw <cmd>lua git_grep_word{ word_match = "-w", only_sort_text = true, initial_mode = "normal" }<cr>
|
||||
nnoremap <silent> <Leader>q <cmd>lua require('telescope.builtin').quickfix{ initial_mode = "normal" }<cr>
|
||||
nnoremap <silent> <C-k> <cmd>lua require('telescope.builtin').git_files{}<cr>
|
||||
nnoremap <silent> <Leader>ag <cmd>lua require('telescope.builtin').live_grep{ word_match = "-w", only_sort_text = true, cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1], search = ''}<cr>
|
||||
nnoremap <silent> <Leader>aw <cmd>lua require('telescope.builtin').grep_string{ word_match = "-w", only_sort_text = true, cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1]}<cr>
|
||||
nnoremap <silent> <Leader>q <cmd>lua require('telescope.builtin').quickfix{}<cr>
|
||||
|
||||
" For C++ -- A is a great plugin which allows you to jump from the c file to the
|
||||
" header and vice-versa. Mneumonic here is headerheader.
|
||||
|
|
@ -1024,7 +1024,7 @@ nnoremap <Leader>hh :A<CR>
|
|||
" CommandT is useful, but if I'm juggling lots of buffers, limit it to another
|
||||
" one I have open (instead of standard <Leader>t).
|
||||
"nnoremap <silent> <Leader>o :<C-u>Buffers<CR>
|
||||
nnoremap <silent> <Leader>o <cmd>lua buffer_telescope{initial_mode = "normal"}<cr>
|
||||
nnoremap <silent> <Leader>o <cmd>lua require('telescope.builtin').buffers{}<cr>
|
||||
"nnoremap <Leader>j <C-^>
|
||||
"nnoremap <Leader>p :PTW
|
||||
nnoremap <Leader>p :LustyJugglePrevious<CR>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue