Merge pull request #17422 from shadmansaleh/enhance/maps

fix: <Nop> not shown in :map commands
This commit is contained in:
zeertzjq
2022-02-16 16:01:17 +08:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -1037,4 +1037,9 @@ describe('nvim_buf_set_keymap, nvim_buf_del_keymap', function()
eq(1, exec_lua[[return GlobalCount]])
eq('\nNo mapping found', helpers.exec_capture('nmap asdf'))
end)
it ('shows <nop> as map rhs', function()
meths.set_keymap('n', 'asdf', '<nop>', {})
eq('\nn asdf <Nop>', helpers.exec_capture('nmap asdf'))
end)
end)