Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for neovim's vim.ui.select() #53

Open
lucc opened this issue Jul 23, 2022 · 2 comments
Open

Add support for neovim's vim.ui.select() #53

lucc opened this issue Jul 23, 2022 · 2 comments

Comments

@lucc
Copy link

lucc commented Jul 23, 2022

Neovim provides a lua function vim.ui.select() that can be used by plugins to ask the user to select one of several entries. Other plugins can than overwrite this function and provide the user with nice and fancy picker/select interfaces. The idea is that plugins like thesaurus_query need not bother implementing their own user interaction just to select an entry and advanced plugins like telescope can take care of the interface.

I know thesaurus_query also supports Vim so this would not rid you of the need to write your own select interface but you could leavage the advantage of this neovim interface.

Is this a feasible feature request?

@Ron89
Copy link
Owner

Ron89 commented Aug 12, 2022

hmm, many thesaurus APIs actually group the thesaurus by the word's different meaning.
e.g.
mean
group 1: way, method, etc.
group 2: selfish, miserly, stingy, etc.

Personally I find displaying everything in one drop-down list hard to use. But I think I have opened a mode for people to use drop-down list method to use it as well. Don't know if it helps?

g:tq_use_vim_autocomplete~

@lucc
Copy link
Author

lucc commented Aug 20, 2022

I think my proposal is for the:ThesaurusQueryReplaceCurrentWord but the autocompletion option also looks nice, I did not know that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants