Omni completion: Pattern not found
Closed this issue · 3 comments
Trying to get completion to work, MacVim 7.3, latest version of vaxe (HEAD). OSX Lion.
The project is a simple Haxe test class:
➜ haxe_test ls
build.hxml marcelo marcelo.hx test.hx
marcelo.hx:
class Marcelo {
static function main() {
var a:Marcelo = new Marcelo();
}
public function new() {
trace("hi");
}
}
build.hxml:
-main Marcelo
-js marcelo.js
When I try to use completion, I get the message specified in the title of this issue. Any ideas?
Thanks!
- Marcelo.
Hi Marcelo,
The issue might be the name of the file. Can you try to rename to Marcelo.hx? Let me know if that works....
Works like a charm! Thanks!
However, I can see that if there's only one method in the class (highly unlikable to happen), the popup with the method signatures doesn't appear - it completes, but doesn't show the method signature. I wouldn't say it's a bug though, just an observation.
Cheers!
- Marcelo
On Monday, August 20, 2012 at 7:49 PM, Justin Donaldson wrote:
Hi Marcelo,
The issue might be the name of the file. Can you try to rename to Marcelo.hx? Let me know if that works....—
Reply to this email directly or view it on GitHub (#2 (comment)).
You should be able to configure vim to behave this way. See:
:h completeopt
for a list of completion options. One of them, "menuone" will show the completion menu even if there's only a single completion option. There's another option "preview" that will pop up a new mini buffer with class/method documentation (if present), and the signature.
I'm not a fan of automatically opening the preview window for every completion. But, I do have a toggle that can enable or disable it:
https://github.com/jdonaldson/dotfiles/blob/f0ad277f741de575bf9d218b4ebbcfce961925d9/vimrc#L195
Occasionally, it's good to keep open the documentation for a complicated or long method signature.