# Custom keymaps {#ch-keymaps} Some plugin modules provide keymap options for your convenience. If a keymap is not provided by such module options, you may easily register your own custom keymaps via {option}`vim.keymaps`. ```nix { config.vim.keymaps = [ { key = "m"; mode = "n"; silent = true; action = ":make"; } { key = "l"; mode = ["n" "x"]; silent = true; action = "cnext"; } { key = "k"; mode = ["n" "x"]; # While `lua` is `true`, `action` is expected to be # a valid Lua expression. lua = true; action = '' function() require('foo').do_thing() print('did thing') end ''; } ]; } ```