Include autocomplete candidate from another file?

Hi !

When I write email or a git commit message, I sometime miss the autocomplete of another file.

Would it be possible to load completion candidate from another file into the current buffer ?

For e.g. if I’m writing in a file /tmp/foo.txt, I could call a function :load-autocomplete-candidate ~/my_project/ . Now I have all the function and variable from available inside foo.txt autocomplete suggestion.

I didn’t find any doc regarding completion.
(EDIT: found it. it’s actually in :doc options search for ^completer and ^completions. )

Wouldn’t just having it open do that? :e ~/my_project/ then switch back to foo.txt

1 Like

Ah yes in deed ! I didn’t though about it :sweat_smile: