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

feature: Configuration option to override the usage of timeoutlen #549

Open
1 task done
s1n7ax opened this issue Nov 26, 2023 · 1 comment
Open
1 task done

feature: Configuration option to override the usage of timeoutlen #549

s1n7ax opened this issue Nov 26, 2023 · 1 comment
Labels
enhancement New feature or request stale

Comments

@s1n7ax
Copy link

s1n7ax commented Nov 26, 2023

Did you check the docs?

  • I have read all the which-key.nvim docs

Is your feature request related to a problem? Please describe.

timeoutlen really doesn't defines the purpose of the property clearly in neovim. So when multiple plugins are using the same global value to do two separate things, there is no option except to find the middle ground for both.

Ex:-
Oil.nvim uses timeoutlen to delay the update of effects like toggle hidden files/directories. Which-key is using timeoutlen to delay the popup window.

If what the user wants is to show the oil.nvim to act immediately at the same time which-key to delay the window by 1000ms, then this is not possible.

Describe the solution you'd like

Accept timeout option from the configuration. Fallback to timeoutlen if it's not available or set a default timeout value.

timeout = timeout or vim.o.timeoutlen

OR

timeout = timeout or 500

Describe alternatives you've considered

I think the timeoutlen is a global option so I could not find a solution other than set it to 1000 and hope I don't have to toggle hidden as much in oil.nvim.

Additional context

@s1n7ax s1n7ax added the enhancement New feature or request label Nov 26, 2023
Copy link
Contributor

github-actions bot commented Jul 6, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant