diff options
author | Jackson Taylor <jtaylor@classicalconversations.com> | 2023-05-11 11:11:04 -0400 |
---|---|---|
committer | Jackson Taylor <jtaylor@classicalconversations.com> | 2023-05-11 11:11:04 -0400 |
commit | a719ad8a2f87c1c0a34af41ed7f5370bdb192357 (patch) | |
tree | 57e12dfc1c4c21e99e19e1f96e6ab954e2f64c02 | |
parent | 97607fb3b0e8bc73c6317d28abb9cf92804ed7a9 (diff) |
Add splits keybinds
I mostly end up using the actual commands for these, but having them in
keybinds is nice.
-rw-r--r-- | after/plugin/which-key.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/after/plugin/which-key.lua b/after/plugin/which-key.lua index dace070..d4b8cb2 100644 --- a/after/plugin/which-key.lua +++ b/after/plugin/which-key.lua @@ -61,6 +61,7 @@ function whichkey_setup() -- h = { "<cmd>Git add %<CR>", "Stage hunk"} t = { "<cmd>Git add %<CR>", "Stage this file"} }, + b = { "<cmd>BlamerToggle<CR>", "Turn on Git Blamer"}, c = { name = "Commit", a = {"<cmd>Git commit --amend<CR>", "Amend commit"}, @@ -98,6 +99,14 @@ function whichkey_setup() S = { "<cmd>PackerStatus<cr>", "Status" }, u = { "<cmd>PackerUpdate<cr>", "Update" }, }, + + s = { + name = "Splits", + c = {"<cmd>q<CR>", "Close the current split"}, + q = {"<cmd>only<CR>", "Close all splits"}, + s = {"<cmd>split<CR>", "Create horizontal split"}, + v = {"<cmd>vsplit<CR>", "Create vertical split"}, + }, } whichkey.setup(conf) |