aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/_meta/misc.lua
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2025-03-29 08:29:06 -0500
committerGitHub <noreply@github.com>2025-03-29 06:29:06 -0700
commit0d73ec583465f06227845b7171dcea59d7b24e97 (patch)
treed5178f44dc44fbd9918beeadf300fa6c25701498 /runtime/lua/vim/treesitter/_meta/misc.lua
parent89bc9455543abbd98bba752367ab5f2b83943931 (diff)
downloadrneovim-0d73ec583465f06227845b7171dcea59d7b24e97.tar.gz
rneovim-0d73ec583465f06227845b7171dcea59d7b24e97.tar.bz2
rneovim-0d73ec583465f06227845b7171dcea59d7b24e97.zip
fix(api): use original LHS in keymap error message #33135
When setting a keymap with "unique" that already exists the error message contains the LHS of the keymap with termcodes replaced. In particular this means that keys like <Tab> show as an actual tab character, meaning the error message displays as "Mapping already exists for ", which is hard to debug for users. Instead, display the original LHS (without any simplification or parsed termcodes). This rperesents exactly what the user passed to the `lhs` argument of `nvim_set_keymap`, which makes it easier to find where the offending keymap is.
Diffstat (limited to 'runtime/lua/vim/treesitter/_meta/misc.lua')
0 files changed, 0 insertions, 0 deletions