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

Filetype Completion Delay #178

Open
Gavinok opened this issue May 15, 2020 · 2 comments
Open

Filetype Completion Delay #178

Gavinok opened this issue May 15, 2020 · 2 comments

Comments

@Gavinok
Copy link

Gavinok commented May 15, 2020

Mucomplete is awesome and works well with most lsp plugin when they use omnicomplete.

This issue I have is that some languages take a while for there language server to return the completions. Because of this omnicomplete has to wait for them.

A solution is to use g:mucomplete#completion_delay.

The issue with this solution is that not all languages have this issue. For example when weighting an email I don't need a delay.

@lifepillar
Copy link
Owner

Do I understand correctly that you are asking to be able to set different completion delays for different filetypes?

@lbiaggi
Copy link

lbiaggi commented May 16, 2020

@Gavinok,

you can set for each file type an auto command with respective delay, something like this:

...
autocmd FileType c,cpp let g:mucomplete#completion_delay = 100
autocmd FileType tex,text let g:mucomplete#completion_delay = 0
...

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

No branches or pull requests

3 participants