-
Notifications
You must be signed in to change notification settings - Fork 407
[question] How to confirm for vimtex's K by default? #2567
Copy link
Copy link
Closed
Description
When I press K, it echoes Open documentation for usepackage: siunitx? [y]es/[n]o:. How to let vimtex always open without confirmation?
BTW. :VimtexDocPackage siunitx will get
Error detected while processing function vimtex#doc#package[1]..vimtex#doc#get_context:
line 1:
E121: Undefined variable: a:word
function! vimtex#doc#get_context(...) abort " {{{1
let l:context = a:0 == 0 || empty(a:1)
\ ? s:packages_get_from_cursor()
\ : {
\ 'type': 'word',
\ 'candidates': [a:word],
\ }
if empty(l:context) | return {} | endif
call s:packages_remove_invalid(l:context)
return l:context
endfunctionI doubt it is a bug. Maybe you want to use a:1 not a:word.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels