nvim: Add any-jump
While this purpose can also be served by fzf the additional feature of any-jump is that it shows definitions and usages, so helps to have more context. Should also help us for languages we do not have any setup for and might not want to use tags. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
edfd027067
commit
2b59e8e343
1 changed files with 8 additions and 0 deletions
|
@ -100,6 +100,7 @@ Plug 'liuchengxu/vim-which-key'
|
||||||
Plug 'farmergreg/vim-lastplace'
|
Plug 'farmergreg/vim-lastplace'
|
||||||
Plug 'ronakg/quickr-preview.vim'
|
Plug 'ronakg/quickr-preview.vim'
|
||||||
Plug 'voldikss/vim-floaterm'
|
Plug 'voldikss/vim-floaterm'
|
||||||
|
Plug 'pechorin/any-jump.nvim'
|
||||||
|
|
||||||
" Initialize plugin system
|
" Initialize plugin system
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
@ -362,6 +363,11 @@ vnoremap <Leader># :Tabularize /#-}<CR>
|
||||||
vnoremap <Leader>: :Tabularize /::<CR>
|
vnoremap <Leader>: :Tabularize /::<CR>
|
||||||
vnoremap <Leader>[ :Tabularize /[<CR>
|
vnoremap <Leader>[ :Tabularize /[<CR>
|
||||||
|
|
||||||
|
" Any jump
|
||||||
|
nnoremap aj :AnyJump<CR>
|
||||||
|
nnoremap ab :AnyJumpBack<CR>
|
||||||
|
nnoremap al :AnyJumpLastResults<CR>
|
||||||
|
|
||||||
command! -bang -nargs=* GGrep
|
command! -bang -nargs=* GGrep
|
||||||
\ call fzf#vim#grep(
|
\ call fzf#vim#grep(
|
||||||
\ 'git grep --line-number '.shellescape(<q-args>), 0,
|
\ 'git grep --line-number '.shellescape(<q-args>), 0,
|
||||||
|
@ -706,6 +712,8 @@ let g:floaterm_height = 0.8
|
||||||
let g:floaterm_winblend = 0
|
let g:floaterm_winblend = 0
|
||||||
let g:floaterm_borderchars = ['─', '│', '─', '│', '╭', '╮', '╯', '╰']
|
let g:floaterm_borderchars = ['─', '│', '─', '│', '╭', '╮', '╯', '╰']
|
||||||
|
|
||||||
|
let g:any_jump_disable_default_keybindings = v:true
|
||||||
|
|
||||||
" ----------------------------- Functions ------------------------------------
|
" ----------------------------- Functions ------------------------------------
|
||||||
function! NvimGdbNoTKeymaps()
|
function! NvimGdbNoTKeymaps()
|
||||||
tnoremap <silent> <buffer> <Esc> <C-\><C-n>
|
tnoremap <silent> <buffer> <Esc> <C-\><C-n>
|
||||||
|
|
Loading…
Reference in a new issue