Closed jilen closed 2 years ago
Which company function did you use?
Haven't tried builtin company backends.
But a custom backend defined here https://ensime.github.io/downloads/ensime-tng-3.0.0.tar.gz.
Which is a little complicated to setup.
Hm, I cannot find anything related to cursor focus with compeletion-at-point-functions
maybe it just impossible to deal with cursor pos after completion.
The post argument expansion, cursor handling happens here:
It uses yasnippet. cape-company-to-capf calls the post-completion action here:
https://github.com/minad/cape/blob/e5e11f30f0b6ed0a2b283d5d3dec84bcd36557fc/cape.el#L955-L958
In principle this should work. I know for sure that post completion expansion works with cape-company-to-capf for other backends so I assume that it is an issue with either your config or ensime. Can you debug this further?
Ok, let me have a try.
Found it depends on company-template
which was not loaded with my setup.
Thanks for point out the right direction.
With company, after completion(function), the cursor will focus on the first parameter, and can use tab to navigate to next parameter. This behavior is lost after transformed with
cape-company-to-capf
.