Skip to content

Commit

Permalink
feat: allow VimtexTocToggle inside ToC
Browse files Browse the repository at this point in the history
refer: #2317
  • Loading branch information
lervag committed Jan 31, 2022
1 parent c0ae62e commit 54bcb04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/vimtex/toc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ function! s:toc.create() abort dict " {{{1
nnoremap <silent><buffer><nowait> - :call b:toc.decrease_depth()<cr>
nnoremap <silent><buffer><nowait> + :call b:toc.increase_depth()<cr>
command! -buffer VimtexTocToggle call b:toc.close()

for [type, key] in items(self.layer_keys)
execute printf(
\ 'nnoremap <silent><buffer><nowait> %s'
Expand Down

0 comments on commit 54bcb04

Please sign in to comment.