{...}: { keymaps = [ # Window namespace indicator for whichkey { mode = ["n"]; key = "w"; action = ""; options = { desc = "+window"; }; } # Window splits { mode = ["n"]; key = "ws"; action = "s"; options = { desc = "Split window horizontally"; silent = true; }; } { mode = ["n"]; key = "wv"; action = "v"; options = { desc = "Split window vertically"; silent = true; }; } # Window closing { mode = ["n"]; key = "wq"; action = "q"; options = { desc = "Quit window"; silent = true; }; } { mode = ["n"]; key = "wQ"; action = "o"; options = { desc = "Quit all other windows"; silent = true; }; } # Window maximize { mode = ["n"]; key = "wm"; action = { __raw = "require('maximize').toggle"; }; options = { desc = "Toggle maximize window"; silent = true; }; } # Cycle through splits { mode = ["n"]; key = ""; action = "W"; options = { desc = "Cycle to previous split"; silent = true; }; } { mode = ["n"]; key = ""; action = "w"; options = { desc = "Cycle to next split"; silent = true; }; } # Rotate split layout { mode = ["n"]; key = ""; action = "R"; options = { desc = "Rotate splits counter-clockwise"; silent = true; }; } { mode = ["n"]; key = ""; action = "r"; options = { desc = "Rotate splits clockwise"; silent = true; }; } ]; }