Closed raketeneis closed 5 years ago
Thanks! I think it's great improvement, but I'm worrying about the case where racer doesn't return correct function signature. So I'm going to test this PR after checking racer definitely returns correct function signatures, or modifying it to do so. Sorry for delay :sweat:
I just spotted two basic mistakes:
self
argument, e.g. with Rc::new(value: T)
it would fail to match and complete as Rc::new()
.self
argument it gave a placeholder for that instead of dropping it and completing with ()
.I fixed these now, though I should have been more thorough before submitting the PR. Apologies for that.
This worked well when I tested, and it's definitely a nice feature! Thank you :)
@raketeneis, @Wilfred, how do i disable this feature?
I would also like an option to disable the feature!
racer-complete-insert-argument-placeholders
FWIW.
I tried my hand at issue #37. After completion, if the matchtype was a function, it tries to extract and insert the function arguments in the same way that was referenced in the issue. If there is a
self
argument in the beginning of the argument list, that one is not inserted.I don't know much Emacs Lisp, so please let me know if there is a mistake or something I can improve.