aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/pythoncomplete.vim
diff options
context:
space:
mode:
authorOlivia Kinnear <git@superatomic.dev>2026-05-29 13:45:33 -0500
committerGitHub <noreply@github.com>2026-05-29 14:45:33 -0400
commite728c100b5bd4b0c6671d8eb524e15d67cacb42a (patch)
tree24d0e93e4ddbf65f4bf6d98664c497347a20a728 /runtime/autoload/pythoncomplete.vim
parent4b5f026ac924d8f3d8efb4d66b00c2e3ebcf6757 (diff)
downloadrneovim-e728c100b5bd4b0c6671d8eb524e15d67cacb42a.tar.gz
rneovim-e728c100b5bd4b0c6671d8eb524e15d67cacb42a.tar.bz2
rneovim-e728c100b5bd4b0c6671d8eb524e15d67cacb42a.zip
feat(lua): support table `lhs` in vim.keymap.set()/del() #39948
Problem: It is repetitive to map multiple keymaps to do the same thing. Here are some cases where being able to do this would be useful: -- Visual movement for both j/k and down/up: vim.keymap.set({ 'n', 'x' }, { 'j', '<Down>' }, 'v:count == 0 ? "gj" : "j"', { expr = true }) vim.keymap.set({ 'n', 'x' }, { 'k', '<Up>' }, 'v:count == 0 ? "gk" : "k"', { expr = true }) -- Map multiple keys to `<Nop>` concisely: vim.keymap.set({ 'n', 'x' }, { '<Leader>', '<Localleader>', '<CR>' }, '<Nop>') -- Remove multiple keymaps at once: vim.keymap.del('n', { 'gri', 'grn', 'grr' }) Solution: Support the `lhs` of `vim.keymap.set()` and `vim.keymap.del()` being a table, in the same way that `modes` can be.
Diffstat (limited to 'runtime/autoload/pythoncomplete.vim')
0 files changed, 0 insertions, 0 deletions