Skip to content
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

Scratch File Created on Completion #51

Closed
indiesquidge opened this issue Dec 19, 2015 · 2 comments
Closed

Scratch File Created on Completion #51

indiesquidge opened this issue Dec 19, 2015 · 2 comments

Comments

@indiesquidge
Copy link

I'm not sure if this is a configuration setting for Vim that I just haven't learned about and therefore don't have set, but I've never seen it before and it only seems to happen in this plugin. When I run <C-x><C-o> to omni-complete a property, I always get this random [Scratch] file that pops up.
screen shot 2015-12-18 at 9 05 02 pm
Is there a way to keep that new file from opening in my my current buffer? It's quite obtrusive.

Thanks a ton for making this plugin, it's incredible :)

@Quramy
Copy link
Owner

Quramy commented Dec 21, 2015

Hi @indiesquidge .

Do you want to hide the [Scratch] window?

So, write the following to your .vimrc:

  autocmd FileType typescript setlocal completeopt-=preview

@indiesquidge
Copy link
Author

@Quramy, perfect! I didn't realize that was what the preview window was 😊 Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants