Add default mappings for table of labels
This commit is contained in:
parent
a88ca00e8f
commit
f321f412e0
@ -14,6 +14,10 @@ function! vimtex#labels#init(initialized) " {{{1
|
||||
" Define commands
|
||||
command! -buffer VimtexLabelsOpen call vimtex#labels#open()
|
||||
command! -buffer VimtexLabelsToggle call vimtex#labels#toggle()
|
||||
|
||||
" Define mappings
|
||||
nnoremap <buffer> <plug>(vimtex-labels-open) :call vimtex#labels#open()<cr>
|
||||
nnoremap <buffer> <plug>(vimtex-labels-toggle) :call vimtex#labels#toggle()<cr>
|
||||
endfunction
|
||||
|
||||
" }}}1
|
||||
|
@ -67,6 +67,11 @@ function! vimtex#mappings#init(initialized)
|
||||
nmap <silent><buffer> <localleader>lT <plug>(vimtex-toc-toggle)
|
||||
endif
|
||||
|
||||
if g:vimtex_labels_enabled
|
||||
nmap <silent><buffer> <localleader>lr <plug>(vimtex-labels-open)
|
||||
nmap <silent><buffer> <localleader>lR <plug>(vimtex-labels-toggle)
|
||||
endif
|
||||
|
||||
if g:vimtex_view_enabled
|
||||
nmap <silent><buffer> <localleader>lv <plug>(vimtex-view)
|
||||
if has_key(g:vimtex#data[b:vimtex.id], 'rsearch')
|
||||
|
Loading…
Reference in New Issue
Block a user