-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] How to confirm for vimtex's K by default? #2567
Comments
Sorry, that was a bug; fixed now!
You can avoid the confirmation with |
I tested if |
The following can work: diff --git a/autoload/vimtex/doc.vim b/autoload/vimtex/doc.vim
index 5f4dabbb..c6651912 100644
--- a/autoload/vimtex/doc.vim
+++ b/autoload/vimtex/doc.vim
@@ -57,7 +57,7 @@ function! vimtex#doc#make_selection(context) abort " {{{1
endif
if len(a:context.candidates) == 1
- if g:vimtex_doc_confirm_single && vimtex#ui#confirm([
+ if g:vimtex_doc_confirm_single || vimtex#ui#confirm([
\ 'Open documentation for ' . a:context.type . ': ',
\ ['VimtexSuccess', a:context.candidates[0]],
\ '?' |
Sorry about that, I think it is fixed now. |
When I press
K
, it echoesOpen documentation for usepackage: siunitx? [y]es/[n]o:
. How to let vimtex always open without confirmation?BTW.
:VimtexDocPackage siunitx
will getI doubt it is a bug. Maybe you want to use
a:1
nota:word
.The text was updated successfully, but these errors were encountered: