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

embed quickpick.vim and add experimental quickpick support for codelens #1019

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

prabirshrestha
Copy link
Owner

more details at mattn/vim-lsp-settings#368 (comment)

This introduces quickpick which can be used to fuzzy search and is lot easier to use than inputlist. quickpick.vim is similar to ctrlp/denite which I wrote in single vimscript similar to async.vim and callbag.vim which so that it can easily be embeded.

It is currently under let lsp_experimental_quickpick_ui = 1 since quickpick it self might be buggy. There are no docs yet since it is experimental feature refer to source code of quickpick which is currently 400 lines of code and very easy to navigate around. Use it at your own risk.

Key Description
Ctrl-J Move down
Ctrl-K Move up
Enter Accept selection and close
Esc Cancel and clsoe

lspcodelens-quickpick

I will make the quickpick more resuable and easier to use inside vim-lsp in the future so everyone doesnt' have to implement on_accept/on_cancel methods.

//cc @mattn

@mattn
Copy link
Collaborator

mattn commented Jan 5, 2021

Cool!

screenshot

@prabirshrestha prabirshrestha merged commit 8913526 into master Jan 5, 2021
@prabirshrestha prabirshrestha deleted the quickpick branch January 5, 2021 05:27
@prabirshrestha
Copy link
Owner Author

Merged.

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

Successfully merging this pull request may close these issues.

2 participants