keymaps: update example

This commit is contained in:
Pei Yang Ching 2024-08-23 14:16:07 +02:00
parent afc7092d63
commit a6cfdb10fb

View file

@ -66,13 +66,20 @@ in {
type = listOf mapType; type = listOf mapType;
description = "Custom keybindings."; description = "Custom keybindings.";
example = '' example = ''
maps = { vim.keymaps = [
"<leader>m" = { {
key = "<leader>m";
mode = "n"; mode = "n";
silent = true; silent = true;
action = "<cmd>make<CR>"; action = ":make<CR>";
}; # Same as nnoremap <leader>m <silent> <cmd>make<CR> }
}; {
key = "<leader>l";
mode = ["n" "x"];
silent = true;
action = "<cmd>cnext<CR>";
}
];
''; '';
default = {}; default = {};
}; };