hylang / hy-mode

Hy mode for Emacs
GNU General Public License v3.0
189 stars 48 forks source link

Autocompletion #53

Closed ekaschalk closed 6 years ago

ekaschalk commented 6 years ago

d44dce8475cd1e8d14a533c604c3c32fcdcd4a9f Hy now has some initial auto-completion support!

~It uses the tab completions from hy.completer.Completer.~ Custom implementation now.

If you use spacemacs use spacemacs-hy, otherwise add to backends to get completion.

Todos:

  1. ~Modules integration (complete eg. np.array)~
  2. ~Metadata showing (eg. distinguish completion as keyword, function).~
  3. ~Add autocompletion to repl.~
ekaschalk commented 6 years ago

Autocompletion now messages the eldoc string for currently selected candidate.

ekaschalk commented 6 years ago

We now have full autocompletion support. It will complete any object, including module members.

The last step is to add the keyword/class/func metadata to the candidate strings ala python/any other major mode.

ekaschalk commented 6 years ago

Autocompletion with keyword/def/macro/compiler/... annotations now complete.

Autocompletion is fully implemented for both shell and standard buffers.