tern_for_vim
tern_for_vim copied to clipboard
Disable auto preview window.
How can i disable auto prewiev window. Comman set completeopt-=preview not work in .vimrc
It seems that Tern's preview window is using custom code, and can not currently be disabled.
@clausreinke Do you want to add an option for this?
Can you describe precisely what you are doing and seeing? If you have the preview window open, close it (:pc), then set completeopt-=preview, and completion will not open a preview window.
@marijnh the self-defined preview window is only used for documentation lookup.
any update on this? :+1:
This seems to get the job done for me at least.
autocmd BufEnter * set completeopt-=preview
Any way to get the documentation window to only show up while you're looking through the list of suggestions? That would make this a pretty useful feature. Right now it just opens up the related documentation and then never goes away unless I manually do :pc
+1, I like @ShirajG suggestion
+1 @ShirajG.
I was very frustrated to manually close the preview window. Now, I have set set completeopt-=preview and it works perfectly. However, the documentation opened in preview window is sometimes useful, I totally agree with @ShirajGs' idea.
I'm not going to do this, since I don't understand the vim conventions involved well enough. But a patch would definitely be welcome.
I found a stackoverflow answer!
autocmd CompleteDone * pclose
This will automatically hide the preview window whenever you're done auto-completing.