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
feat(cmp): add on_config_done callback #3589
feat(cmp): add on_config_done callback #3589
Conversation
The |
The cmp.setup.filetypes may not be possible to set but i think having an on_config_done callback like with other plugins would be a better solution |
Ok, I though that it would be best to have this case available by configuration instead of by overriding all work done in the
I was not aware of this mechanism, will rework the PR |
This allow user to customize nvim_cmp behavior after initialization. For instance user can disable the completion on some filetypes Signed-off-by: Mathieu Cartaud <dev@mcartaud.com>
7356a08
to
a406162
Compare
This new version adds an |
Is it ready for review? (it's a draft), oh and update the pr description and name if it is ready |
Add an empty line at before the end of the cmp setup function Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
on_config_done
property in nvim-cmp config
Thanks for the review |
Update the pr description and all looks good to me, i've never seen the checks take so long btw |
Yes, lot's of things to test in this review :) It's all done, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
on_config_done
property in nvim-cmp config* upstream/master: fix(config): fix typo in example configs (LunarVim#3611) feat(cmp): add on_config_done callback (LunarVim#3589) fix(lsp): add neocmake to skipped_servers (LunarVim#3597) fix(alpha): check height of the aplha window (LunarVim#3585) fix: only call theme's setup if it's selected (LunarVim#3586) chore: bump plugins version (LunarVim#3518) ci: restrict scheduled workflows to lunarvim (LunarVim#3591)
Description
User can use a
on_config_done
property in nvim-cmp config. It allow user to hook on the plugin and make additionnal configuration after the plugin is setup.How has this been tested
In the nvim config file
4. Reload LunarVim
5. Commit something in a repo and see that completion doesn't open
Signed-off-by: Mathieu Cartaud dev@mcartaud.com