bug: `plugins.presets.g` has no effect shortening `gx` description
Neovim version (nvim -v)
NVIM v0.12.0-dev-197+g1dbede5b93 Build type: RelWithDebInfo LuaJIT 2.1.1744317938 or stable NVIM v0.11.2 Build type: Release LuaJIT 2.1.1741730670
Operating system/version
Arch Linux (WSL) and Windows 11
Describe the bug
No effect for changing gx keybind to a shorter desc. Wether with plugins.presets.g=true explicitely stated or with default config.
https://github.com/folke/which-key.nvim/blob/370ec46f710e058c9c1646273e6b225acf47cbed/lua/which-key/plugins/presets.lua#L192
As a result g layout occupies a single column due to gx desc being too long
Steps To Reproduce
local lazypath = vim.fn.stdpath("data") .. "-repro/lazy/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",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " " -- Set leader key to space
vim.opt.termguicolors = true -- Enable true color support
-- Plugin specifications
require("lazy").setup({
-- plugins here
{
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
plugins = {
marks = true,
registers = true,
spelling = {
enabled = true,
suggestions = 20,
},
presets = {
operators = true, -- adds help for operators like d, y, ...
motions = true, -- adds help for motions
text_objects = true, -- help for text objects triggered after entering an operator
windows = true, -- default bindings on <c-w>
nav = true, -- misc bindings to work with windows
z = true, -- bindings for folds, spelling and others prefixed with z
g = true, -- bindings for prefixed with g
},
},
},
},
})
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.
This issue was closed because it has been stalled for 7 days with no activity.