diff --git a/config/plugins/git/gitsigns.nix b/config/plugins/git/gitsigns.nix index c9d5aeb..cfa5131 100644 --- a/config/plugins/git/gitsigns.nix +++ b/config/plugins/git/gitsigns.nix @@ -6,7 +6,7 @@ keymaps = [ { mode = ["n" "v"]; - key = "hs"; + key = "gs"; action = "Gitsigns stage_hunk"; options = { silent = true; @@ -16,7 +16,7 @@ { mode = ["n" "v"]; - key = "hr"; + key = "gr"; action = "Gitsigns reset_hunk"; options = { silent = true; @@ -26,7 +26,7 @@ { mode = "n"; - key = "hS"; + key = "gS"; action = "Gitsigns stage_buffer"; options = { silent = true; @@ -36,7 +36,7 @@ { mode = "n"; - key = "hu"; + key = "gu"; action = "Gitsigns undo_stage_hunk"; options = { silent = true; @@ -46,7 +46,7 @@ { mode = "n"; - key = "hR"; + key = "gR"; action = "Gitsigns reset_buffer"; options = { silent = true; @@ -56,7 +56,7 @@ { mode = "n"; - key = "hp"; + key = "gp"; action = "Gitsigns preview_hunk_inline"; options = { silent = true; @@ -66,7 +66,7 @@ { mode = "n"; - key = "hb"; + key = "gb"; action = "Gitsigns blame"; options = { silent = true; @@ -76,7 +76,7 @@ { mode = "n"; - key = "tb"; + key = "gtb"; action = "Gitsigns toggle_current_line_blame"; options = { silent = true; @@ -86,7 +86,7 @@ { mode = "n"; - key = "hd"; + key = "gd"; action = "Gitsigns diffthis"; options = { silent = true; @@ -96,7 +96,7 @@ { mode = "n"; - key = "td"; + key = "gtd"; action = "Gitsigns toggle_deleted"; options = { silent = true; diff --git a/config/plugins/git/lazygit.nix b/config/plugins/git/lazygit.nix index a932071..c0c982b 100644 --- a/config/plugins/git/lazygit.nix +++ b/config/plugins/git/lazygit.nix @@ -6,7 +6,7 @@ keymaps = [ { mode = "n"; - key = "gg"; + key = "g"; action = "LazyGit"; options = { desc = "Open LazyGit"; @@ -15,7 +15,7 @@ { mode = "n"; - key = "lr"; + key = "glr"; action = "lua require(\"telescope\").extensions.lazygit.lazygit()"; options = { desc = "List repositories"; diff --git a/config/plugins/lsp/conform.nix b/config/plugins/lsp/conform.nix index da7bb4d..8631886 100644 --- a/config/plugins/lsp/conform.nix +++ b/config/plugins/lsp/conform.nix @@ -63,7 +63,7 @@ end ''; options = { - desc = "Format buffer"; + desc = "format_buffer"; }; } ]; diff --git a/config/plugins/ui/neo-tree.nix b/config/plugins/ui/neo-tree.nix index d735ce6..09c1eb3 100644 --- a/config/plugins/ui/neo-tree.nix +++ b/config/plugins/ui/neo-tree.nix @@ -7,9 +7,9 @@ keymaps = [ { mode = "n"; - key = "\\"; + key = "e"; action = "Neotree"; - options.desc = "Focus Neotree"; + options.desc = "focus_neotree"; } ]; } diff --git a/config/plugins/utils/telescope.nix b/config/plugins/utils/telescope.nix index f7816d8..0ba7de2 100644 --- a/config/plugins/utils/telescope.nix +++ b/config/plugins/utils/telescope.nix @@ -16,31 +16,24 @@ # Configure our telescope keymaps. keymaps = { - # File Pickers - "sf" = { - action = "find_files"; - options = { - desc = "Search project files"; - }; - }; "/" = { action = "live_grep"; options = { - desc = "Grep (root dir)"; - }; - }; - - # Vim Pickers - "sb" = { - action = "buffers"; - options = { - desc = "Search open buffers"; + desc = "live_grep"; }; }; ":" = { action = "command_history"; options = { - desc = "Command History"; + desc = "command_history"; + }; + }; + + # Search + "sb" = { + action = "buffers"; + options = { + desc = "Search open buffers"; }; }; "sc" = { @@ -49,46 +42,50 @@ desc = "Search Commands"; }; }; - - # Git Pickers - "lc" = { - action = "git_bcommits"; + "sf" = { + action = "find_files"; options = { - desc = "List buffers commits"; + desc = "Search project files"; }; }; - "lC" = { - action = "git_commits"; - options = { - desc = "List git commits"; - }; - }; - "lb" = { - action = "git_branches"; - options = { - desc = "List git branches"; - }; - }; - "ld" = { - action = "git_status"; - options = { - desc = "List git diff"; - }; - }; - "ls" = { - action = "git_stash"; - options = { - desc = "List git stash"; - }; - }; - - # Extensions "sl" = { action = "software-licenses find"; options = { desc = "Search Software Licenses"; }; }; + + # List + "glc" = { + action = "git_bcommits"; + options = { + desc = "List git commits"; + }; + }; + "glC" = { + action = "git_commits"; + options = { + desc = "List git commits"; + }; + }; + "glb" = { + action = "git_branches"; + options = { + desc = "List git branches"; + }; + }; + "gld" = { + action = "git_status"; + options = { + desc = "List git diff"; + }; + }; + "gls" = { + action = "git_stash"; + options = { + desc = "List git stash"; + }; + }; }; }; } diff --git a/config/plugins/utils/whichkey.nix b/config/plugins/utils/whichkey.nix index 7501f1e..f226fd1 100644 --- a/config/plugins/utils/whichkey.nix +++ b/config/plugins/utils/whichkey.nix @@ -13,25 +13,7 @@ desc = "+search"; }; } - - { - mode = "n"; - key = "h"; - action = ""; - options = { - desc = "+hunks"; - }; - } - - { - mode = "n"; - key = "t"; - action = ""; - options = { - desc = "+toggle"; - }; - } - + { mode = "n"; key = "b"; @@ -61,11 +43,20 @@ { mode = "n"; - key = "l"; + key = "gl"; action = ""; options = { desc = "+list"; }; } + + { + mode = "n"; + key = "gt"; + action = ""; + options = { + desc = "+toggle"; + }; + } ]; }