summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jtaylor@classicalconversations.com>2023-08-29 13:52:34 -0400
committerJackson Taylor <jtaylor@classicalconversations.com>2023-08-29 13:52:34 -0400
commit168358c15897cb239bf7412b461aee0242c93b7b (patch)
tree052a238cc3dc2b4ce3081efbc36e731b87348755
parent8c2d742860b93b91f4cbab9bf8841df7f23f9d9d (diff)
Add more split commands
-rw-r--r--after/plugin/which-key.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/after/plugin/which-key.lua b/after/plugin/which-key.lua
index 852e147..192fb83 100644
--- a/after/plugin/which-key.lua
+++ b/after/plugin/which-key.lua
@@ -95,6 +95,7 @@ function whichkey_setup()
},
o = {
+ name = "Options",
c = { function () telescope_builtin.colorscheme(); end, "Change colorscheme" },
-- o for orthography
o = {"<cmd>:setlocal spell! spelllang=en_us<CR>", "Spell Check"},
@@ -113,7 +114,12 @@ function whichkey_setup()
s = {
name = "Splits",
c = {"<cmd>close<CR>", "Close the current split"},
- o = {"<cmd>only<CR>", "Close all splits"},
+ n = {
+ name = "New Splits",
+ h = {"<cmd>new<CR>", "Open blank horizontal split"},
+ v = {"<cmd>vnew<CR>", "Open blank vertical split"},
+ },
+ o = {"<cmd>only<CR>", "Close all other splits"},
s = {"<cmd>split<CR>", "Create horizontal split"},
v = {"<cmd>vsplit<CR>", "Create vertical split"},
},