commit
1c12503ebf
15 changed files with 1434 additions and 0 deletions
33
config/keymaps.nix
Normal file
33
config/keymaps.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
let
|
||||
forceWrite = {
|
||||
action = "<cmd>silent! update! | redraw<cr>";
|
||||
options.desc = "Force write";
|
||||
};
|
||||
in
|
||||
[
|
||||
{
|
||||
key = "<leader>n";
|
||||
action = "<cmd>enew<cr>";
|
||||
options.desc = "New file";
|
||||
}
|
||||
{
|
||||
inherit (forceWrite) action options;
|
||||
key = "<c-s>";
|
||||
}
|
||||
{
|
||||
inherit (forceWrite) options;
|
||||
mode = [ "i" "x" ];
|
||||
key = "<c-s>";
|
||||
action = "<esc>${forceWrite.action}";
|
||||
}
|
||||
{
|
||||
key = "|";
|
||||
action = "<cmd>vsplit<cr>";
|
||||
options.desc = "Split vertically";
|
||||
}
|
||||
{
|
||||
key = "\\";
|
||||
action = "<cmd>split<cr>";
|
||||
options.desc = "Split horizontally";
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue