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

bug: Hints for gt/gT mappings are not shown when "g" is pressed #457

Closed
3 tasks done
j-xella opened this issue May 11, 2023 · 4 comments · Fixed by #490
Closed
3 tasks done

bug: Hints for gt/gT mappings are not shown when "g" is pressed #457

j-xella opened this issue May 11, 2023 · 4 comments · Fixed by #490
Labels
bug Something isn't working

Comments

@j-xella
Copy link

j-xella commented May 11, 2023

Did you check docs and existing issues?

  • I have read all the which-key.nvim docs
  • I have searched the existing issues of which-key.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.10.0-dev-273+gc8ebb04e9

Operating system/version

redhat

Describe the bug

Neovim has standard mappings, gt / gT, to switch between tabs. When I click g in normal mode, the hint window at the bottom does not show the hints for the above mappings.

Steps To Reproduce

Click g in normal mode

Expected Behavior

The hint window shows the hints for t/T

Repro

Minimal config:

vim.o.timeoutlen = 300

require("which-key").setup {
  -- your configuration comes here
  -- or leave it empty to use the default settings
}
@j-xella j-xella added the bug Something isn't working label May 11, 2023
@Sharparam
Copy link

Related: They also don't show when pressing CTRL-W (there should be an entry for g, which then contains t and T which perform the same actions as gt and gT).

@Leandros
Copy link

Same for CTRL-W L, it's not shown when pressing CTRL-W.

@folke folke closed this as completed in 3ba77f0 Oct 13, 2023
@folke
Copy link
Owner

folke commented Oct 13, 2023

There are lots and lots of default keymaps that are not included in the which-key presets.
I've only included the most common ones.

I just added gt and gT. If you want others included as well, you can easily add them in your personal config.

@Leandros
Copy link

Excellent. Good to know. Thank you for your work! Much appreciated.

willothy pushed a commit to willothy/which-key.nvim that referenced this issue Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants