{ plugins.which-key = { enable = true; keyLabels = { "" = "SPC"; "" = "RET"; "" = "TAB"; }; registrations = { "g" = "Git"; }; }; globals.mapleader = " "; keymaps = [ { key = ";"; action = ":"; } { key = "q;"; action = "q:"; } { key = "y"; action = "\"+y"; } { key = "Y"; action = "\"+Y"; } { key = "p"; action = "\"+p"; } { key = "P"; action = "\"+P"; } { key = "w"; action = "w"; } { key = "q"; action = "q"; } { key = ""; action = "nohlsearch"; mode = "n"; } # root level leader commands { key = ""; action = "Telescope find_files"; options = { desc = "Find files in project"; }; } { key = "/"; action = "Telescope live_grep"; options = { desc = "Search project"; }; } { key = ""; action = "NERDTreeToggle"; options = { desc = "Toggle NERDTree"; }; } # git { key = "gs"; action = "Git"; options = { desc = "Status"; }; } { key = "gp"; action = "Git push"; options = { desc = "Push"; }; } { key = "gP"; action = "Git push --force-with-lease"; options = { desc = "Push (force with lease)"; }; } { key = "gf"; action = "Git fetch"; options = { desc = "Fetch"; }; } # git rebase { key = "gro"; action = "Git rebase origin/main"; options = { desc = "origin/main"; }; } { key = "grO"; action = "Git rebase --interactive origin/main"; options = { desc = "-i origin/main"; }; } { key = "grm"; action = "Git rebase origin/master"; options = { desc = "origin/master"; }; } { key = "grM"; action = "Git rebase --interactive origin/master"; options = { desc = "-i origin/master"; }; } ]; }