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: Some default mappings for folds (z,],[) and 'g' are missing #533

Closed
3 tasks done
uri opened this issue Oct 25, 2023 · 3 comments
Closed
3 tasks done

bug: Some default mappings for folds (z,],[) and 'g' are missing #533

uri opened this issue Oct 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@uri
Copy link

uri commented Oct 25, 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.9.4

Operating system/version

MacOS 14.0

Describe the bug

Pressing z does not show j or k options.

Pressing g does not show j or k options.

Pressing ] or [ does not show z.

Steps To Reproduce

  1. Press z - missing j k
  2. Press g - missing j k
  3. Press ] - missing z
  4. fpress [ - missing z

Expected Behavior

Show the mappings.

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  { "folke/which-key.nvim", config = true },
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@uri uri added the bug Something isn't working label Oct 25, 2023
@folke
Copy link
Owner

folke commented Oct 25, 2023

There's a billion mappings missing. The point of the which-key presets is not to be exhaustive, but to contain the most widely used mappings. You can always add additional mappings yourself

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
@uri
Copy link
Author

uri commented Oct 25, 2023

Is there a way to add all the mappings like a verbose option? I'm sure some people use this plugin as a discovery tool and if they're never presented with certain mappings, could lead to some bad habits.

@folke
Copy link
Owner

folke commented Oct 25, 2023

Sorry no. There's really lots and lots of missing mappings. Check out this PR (that I won't merge) if you want to add more:
#120

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

No branches or pull requests

2 participants