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

Support optionally inserting function arguments #13

Open
nickbroon opened this issue Aug 19, 2015 · 4 comments
Open

Support optionally inserting function arguments #13

nickbroon opened this issue Aug 19, 2015 · 4 comments

Comments

@nickbroon
Copy link

The company-clang backend has company-clang-insert-arguments option that defaults to on.
A similar option for the irony backend would be great.

@Sarcasm
Copy link
Owner

Sarcasm commented Aug 19, 2015

What do you want exactly:

  • to turn off the arguments expansion that we have right now with yasnippet?
  • or you are not aware that with yasnippet enabled the arguments are expanded?

@nickbroon
Copy link
Author

Thanks, I wasn't aware of that. How is the optional yasnippet support in company-irony enable?
It might be worth adding a note about this to the readme.

@Sarcasm
Copy link
Owner

Sarcasm commented Aug 20, 2015

Indeed, it's noted here: https://github.com/Sarcasm/irony-mode#elisp-dependencies

But it should totally appear in company-mode documentation too, I leave this issue open until it's done.

To have it enabled you just have to have yasnippet (yas-minor-mode) enabled in your buffer while the completion is triggered.

In my case I have installed yasnippet and enabled it via yas-global-mode, see: https://github.com/Sarcasm/.emacs.d/blob/bce936b2f63d56b785d0c91cec87923f6e3de9e9/sarcasm-elisp/sarcasm-packages/init-yasnippet.el#L24

@nickbroon
Copy link
Author

Fantastic, thanks! Now working as I'd hoped.

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