Sarcasm / company-irony

company-mode completion back-end for irony-mode
119 stars 11 forks source link

Support optionally inserting function arguments #13

Open nickbroon opened 9 years ago

nickbroon commented 9 years ago

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 commented 9 years ago

What do you want exactly:

nickbroon commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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