onivim/oni

Question: Combine LSP and vim autocomplete menus

Open

#1221 opened on Jan 3, 2018

View on GitHub
 (5 comments) (1 reaction) (0 assignees)TypeScript (11,389 stars) (336 forks)batch import
enhancementhelp wantedinsider

Description

@bryphe at present if a user wanted to use both the autocompletion from a vim plugin as well as that of Oni's LSP two conflicting menus are opened. I'm not sure what you're take on this is but I think that it would be preferable if the output of all autocompletion was merged into one menu so a user has the option of using whatever source they would like rather than disabling one in the favour of the other. Potentially with a configuration option to set priority of the output to either be in vim's plugins favour or the lsp.

I'm not sure currently how each is implemented or how feasible this is as likely they are triggered by separate events so two different instances of the menu are created but I'm wondering whether or not the menu could be setup to reuse instances and just add pagination and maybe some ui clue as to the different sources being used.

This is something I could look at in the future if you're not opposed to it but I'd like to get your take on this as there is likely plenty I haven't accounted for.

Contributor guide