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

hide mapping boilerplate #6

Merged
merged 2 commits into from
Apr 28, 2021
Merged

hide mapping boilerplate #6

merged 2 commits into from
Apr 28, 2021

Conversation

michaelb
Copy link
Contributor

The default view is a bit compact, and even after configurating it a bit wider, many longer strings are shortened to an illisible "...", which kind of defeats the purpose of which-keys...

(consider one of my own mapping : nnoremap <silent> <leader>a <cmd>lua require('lspsaga.codeaction').code_action()<CR>, not saying it's best pratice but many users' may look like this)

This should help a little bit, by removing the standard boilerplate cluttering the mappings.

Probably not an exhaustive list, but this should be 'safe', ie not remove any substring that is an important part to understanding what the mapping do

Copy link
Owner

@folke folke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment :)

lua/which-key/text.lua Outdated Show resolved Hide resolved
Copy link
Owner

@folke folke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@folke folke merged commit b3357de into folke:main Apr 28, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants