Closed luiz00martins closed 1 year ago
:h nvim-surround
NVIM v0.9.0-dev-849+g7880eeb2e
Tagged (Stable)
require('nvim-surround').setup { keymaps = { insert = "", insert_line = "", normal = "s", normal_cur = "ss", normal_line = "yS", normal_cur_line = "ySS", visual = "s", visual_line = "S", delete = "ds", change = "cs", }, }
none
The mapping would be ignored (not created).
Error:
vim/keymap.lua:0: Invalid (empty) LHS # stacktrace: - vim/keymap.lua:0 _in_ **set** - .config/nvim/init/plugins_portable.lua:1330 _in_ **config** - lua:40
No response
They should be set to false to disable them.
false
Yep, seems to work. Thank you.
Is this not still a bug though? If not, you can close.
No, as setting the LHS of a keymap to an empty string doesn't make sense.
Checklist
:h nvim-surround
to see if there might be any relevant information there?Neovim Version
NVIM v0.9.0-dev-849+g7880eeb2e
Plugin Version
Tagged (Stable)
Minimal Configuration
Sample Buffer
none
Keystroke Sequence
none
Expected behavior
The mapping would be ignored (not created).
Actual behavior
Error:
Additional context
No response