lite icon indicating copy to clipboard operation
lite copied to clipboard

need a plugin that adds a autocomplete feature for c++

Open fus0g opened this issue 5 years ago • 8 comments

Feature Request : want a c++ autocomplete feature like in vs-code or code::blocks

fus0g avatar Dec 14 '20 07:12 fus0g

autor forget the project

moje01konto avatar Dec 14 '20 19:12 moje01konto

He didn't forget it, he's just busy with other stuff.

Either way, I highly doubt rxi would want to add autocompletion to lite, as it is far from a trivial thing. You should close this issue and open a request at the plugins repo.

Tmpod avatar Jan 25 '21 09:01 Tmpod

rxi added support for that like in the middle of last year. It's simple to add suggestions to the autocomplete. If people want they can add plugins to do it. Here is a demo he did by using ctags -> https://cdn.discordapp.com/attachments/404399251276169217/709474818042364034/complete.gif

drmargarido avatar Jan 25 '21 11:01 drmargarido

I meant language-specific autocompletions, but yeah, plugins is the way to go here.

Tmpod avatar Jan 25 '21 21:01 Tmpod

By the way, are you going to release that ctags plugin? I'd be really interested in using it and potentially contribute to it too.

Tmpod avatar Jan 25 '21 21:01 Tmpod

This was a gif from rxi displayed last year somewhere around here. I can build something similar when I have some free time.

drmargarido avatar Jan 26 '21 11:01 drmargarido

Golang uses a language server called gopls, i think VSCode is also using this, and there is a move towards a standard and more efficient mechanism for auto completion where the editor only provides a connection and gui but does not need to actually implement the language specific details of auto completion. Would be nice to move off Vim and try this editor. How does this compare to vim, just curious.

einthusan avatar Oct 25 '21 19:10 einthusan

Yeah that's the LSP (Language Server Protocol), something VSCode popularized.

I believe there's a plugin somewhere that was implementing an LSP client for lite, but I don't seem to have it stored on my history and I can't find it online :/

lite is super extensible though and it's rather easy to make plugins. You could make an autocomplete plugin that would utilize an already existing LSP client written in Lua, I suppose.

Either way, you should checkout lite-xl, an active fork of lite.

Tmpod avatar Oct 25 '21 19:10 Tmpod