diff --git a/home-manager/common/software/cli/nixvim-base.nix b/home-manager/common/software/cli/nixvim-base.nix index d32acda5..84164649 100644 --- a/home-manager/common/software/cli/nixvim-base.nix +++ b/home-manager/common/software/cli/nixvim-base.nix @@ -55,18 +55,23 @@ (nmap "gc" ":Git commit -a" // desc "[C]ommit" ) (nmap "gp" ":Git push" // desc "[P]ush") # Window Management - (nmap "w" "" // desc "Move to left window") - # (nmap "wl" "" // desc "Move to right window") - # (nmap "wj" "" // desc "Move to lower window") - # (nmap "wk" "" // desc "Move to upper window") - # (nmap "wc" "" // desc "[C]lose active window") - # (nmap "wn" "" // desc "Open [n]ew window") - ]; + (nmap "wh" ":wincmd h" // desc "Move left") + (nmap "wl" ":wincmd l" // desc "Move right") + (nmap "wj" ":wincmd j" // desc "Move down") + (nmap "wk" ":wincmd k" // desc "Move up") + (nmap "wp" ":wincmd p" // desc "Move to [p]revious") + (nmap "wp" ":wincmd n" // desc "Move to [n]ext") + (nmap "wc" ":wincmd c" // desc "[C]lose active window") + (nmap "ww" ":wincmd w" // desc "Switch [w]indows") + (nmap "wnh" ":wincmd n" // desc "[N]ew [H]orizontal window") + (nmap "wnv" ":wincmd v" // desc "[N]ew [V]ertical window") + # Buffer Management + (nmap "bn" ":bnext" // desc "Next buffer") + (nmap "bp" "bNext" // desc "Previous buffer") options = { number = true; shiftwidth = 2; - # Indent wrapped text. breakindent = true; colorcolumn = "100"; showmode = false; @@ -122,9 +127,9 @@ action = "live_grep"; desc = "Search by live grep"; }; - "b" = { + "bl" = { action = "buffers"; - desc = "Search open [B]uffers by file name"; + desc = "[L]list open [B]uffers"; }; "h" = { action = "help_tags"; @@ -142,6 +147,10 @@ action = "oldfiles"; desc = "Search [R]ecently opened files by name"; }; + "cs" = { + action = "colorscheme"; + desc = "Change [C]olor[s]cheme"; + }; }; };