{ ... }: { programs.nixvim.keymaps = [ { action = ":bnext"; key = ""; options = { silent = true; desc = "Next tab"; }; mode = "n"; } { action = ":bprevious"; key = ""; options = { silent = true; desc = "Previous tab"; }; mode = "n"; } { action = ":bdelete"; key = ""; options = { silent = true; desc = "Next tab"; }; mode = "n"; } { action = ""; key = ""; options = { silent = true; desc = "Exit terminal insert mode"; }; mode = "t"; } { action = ":w"; key = ""; options = { silent = true; desc = "Save"; }; mode = "n"; } { action = ":q"; key = ""; options = { silent = true; desc = "Quit"; }; mode = "n"; } { action = ":wincmd l"; key = "wl"; options = { silent = true; desc = "Go to left panel"; }; mode = "n"; } { action = ":wincmd k"; key = "wk"; options = { silent = true; desc = "Go to upper panel"; }; mode = "n"; } { action = ":wincmd j"; key = "wj"; options = { silent = true; desc = "Go to down panel"; }; mode = "n"; } { action = ":wincmd h"; key = "wh"; options = { silent = true; desc = "Go to left panel"; }; mode = "n"; } { action = "$"; key = "gl"; options = { silent = true; desc = "Go to end line"; }; mode = [ "n" "v" ]; } { action = "^"; key = "gh"; options = { silent = true; desc = "Go to start line"; }; mode = [ "n" "v" ]; } # Neotree { action = ":Neotree toggle"; key = "e"; options = { silent = true; desc = "Toggle file explorer"; }; mode = "n"; } # ToggleTerm { action = ":ToggleTerm direction=float"; key = "t"; options = { silent = true; desc = "Toggle terminal"; }; mode = "n"; } ]; }