diff options
author | Jackson Taylor <jtaylor@classicalconversations.com> | 2024-01-30 11:14:28 -0500 |
---|---|---|
committer | Jackson Taylor <jtaylor@classicalconversations.com> | 2024-01-30 11:14:28 -0500 |
commit | a4f23382d7a3952b043811269c3926eb49b83bc5 (patch) | |
tree | d259f52a5b6178f3fd56467f75f2a87946263e7a | |
parent | 4bfda6f991610ce24c403dc200534c05017acf55 (diff) |
Add helpful keybindings
- Tab manipulation
- Zen mode
- Force kill buffer (quit without writing)
-rw-r--r-- | after/plugin/which-key.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/after/plugin/which-key.lua b/after/plugin/which-key.lua index 869d92f..33cd121 100644 --- a/after/plugin/which-key.lua +++ b/after/plugin/which-key.lua @@ -36,6 +36,7 @@ function whichkey_setup() name = "Buffer", -- c = { "<Cmd>bp|bd #<Cr>", "Close current buffer" }, c = { "<Cmd>BD<Cr>", "Close current buffer" }, + C = { "<Cmd>BD!<Cr>", "Force close current buffer" }, D = { "<Cmd>%bd|e#|bd#<Cr>", "Delete all buffers" }, r = { "<Cmd>e#<CR>", "Reopen last closed file" }, }, @@ -99,7 +100,8 @@ function whichkey_setup() c = { function () telescope_builtin.colorscheme(); end, "Change colorscheme" }, -- o for orthography o = {"<cmd>:setlocal spell! spelllang=en_us<CR>", "Spell Check"}, - w = {"<cmd>set wrap!<CR>", "Wrap lines"} + w = {"<cmd>set wrap!<CR>", "Wrap lines"}, + z = {"<cmd>Goyo<CR>", "Zen mode toggle"} }, p = { @@ -124,6 +126,14 @@ function whichkey_setup() v = {"<cmd>vsplit<CR>", "Create vertical split"}, }, + t = { + name = "Tab", + c = { "<Cmd>tabclose<Cr>", "Close the current tab" }, + j = { "<Cmd>tabprevious<Cr>", "Go to previous tab" }, + k = { "<Cmd>tabnext<Cr>", "Go to next tab" }, + n = { "<Cmd>tabnew<Cr>", "Create new tab" }, + }, + v = { name = "Vimwiki", i = {"<cmd>VimwikiIndex<CR>", "Open Vimwiki index file"}, |