Skip to content

Commit

Permalink
feat: support RequirePackage for vimtex#doc#*
Browse files Browse the repository at this point in the history
refer: #2753
  • Loading branch information
lervag committed Jul 5, 2023
1 parent fa30389 commit bab96ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vimtex/doc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function! s:packages_get_from_cursor() abort " {{{1
let l:cmd = vimtex#cmd#get_current()
if empty(l:cmd) | return {} | endif

if l:cmd.name ==# '\usepackage'
if l:cmd.name ==# '\usepackage' || l:cmd.name ==# '\RequirePackage'
return s:packages_from_usepackage(l:cmd)
elseif l:cmd.name ==# '\documentclass'
return s:packages_from_documentclass(l:cmd)
Expand Down

0 comments on commit bab96ed

Please sign in to comment.