helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
33.69k stars 2.5k forks source link

Lexical autocomplete #1063

Open dead10ck opened 3 years ago

dead10ck commented 3 years ago

Describe your feature request

According to comments in #901, autocomplete has no native implementation and relies solely on LSP. A consequence of this is that when the user has no LSP installed, or one doesn't exist for the file type you are editing, there is no autocomplete at all.

It would be nice if there was a built-in autocomplete that is based purely on the tokens in the current document, without any language awareness.

raphCode commented 2 years ago

I would find this useful too, for writing text / LaTeX documents!

kirawi commented 2 years ago

Related #1015

debajyoti1990 commented 1 year ago

Could anybody please provide the latest status on this FR ?

dead10ck commented 1 year ago

Could anybody please provide the latest status on this FR ?

"It is not done"

estin commented 1 year ago

Currently exists two PRs, they can be helpful on waiting this feature

metafates commented 1 year ago

I've made a simple proof-of-concept LSP that performs autocompletion for the words found in the current buffer. You can find it here https://github.com/metafates/buffer-language-server

estin commented 1 year ago

@metafates nice! Take a look to my solution too https://github.com/estin/simple-completion-language-server

nandoflorestan commented 1 year ago

This is a very important missing feature.

Kurt-Shiwz commented 11 months ago

I found this https://github.com/estin/simple-completion-language-server. It use multi language server to completion.

kirawi commented 2 months ago

In addition to what was said in https://github.com/helix-editor/helix/pull/3328#issuecomment-1559031060, I think if there were someone interested in implementing this, it might be a good idea to register it as a hook for the event system which should relatively compartmentalize the code from the rest of Helix.