summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/keymaps.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/custom-neovim/config/lua/keymaps.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/keymaps.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/custom-neovim/config/lua/keymaps.lua b/pkgs/custom-neovim/config/lua/keymaps.lua
index 67d61cf..3fc39b2 100644
--- a/pkgs/custom-neovim/config/lua/keymaps.lua
+++ b/pkgs/custom-neovim/config/lua/keymaps.lua
@@ -43,7 +43,6 @@ mapkey("n", "<leader>tt", "Go to next tab", ":tabn<cr>")
mapkey("n", "<leader>tT", "Go to previous tab", ":tabp<cr>")
mapkey("n", "<leader>to", "Open new tab", ":tabnew<cr>")
mapkey("n", "<leader>tc", "Close current tab", ":tabclose<cr>")
--- mapkey("n", "<leader>tp", "Pick tabs", ":FzfLua tabs", "fzf-lua")
-- Buffers
mapkey("n", "<leader>b", "Manage buffers", "")
@@ -59,12 +58,17 @@ mapkey("n", "<leader>bc", "Clear invisible buffers", function ()
end)
-- Comment box
-mapkey("n", "<leader>j", "Manage comment graphics", "")
-mapkey("n", "<leader>jb", "Create comment box", ":CB")
+mapkey({"n", "v"}, "<leader>j", "Manage comment graphics", "")
+mapkey({"n", "v"}, "<leader>jd", "Remove comment graphics", ":CBd<cr>")
+mapkey({"n", "v"}, "<leader>jb", "Create simple comment box", ":CBccbox<cr>")
+mapkey({"n", "v"}, "<leader>jh", "Create heavy comment box", ":CBccbox3<cr>")
+mapkey({"n", "v"}, "<leader>jq", "Create quote comment box", ":CBccbox12<cr>")
+mapkey({"n", "v"}, "<leader>jl", "Create simple comment line", ":CBccline<cr>")
-- Session
mapkey("n", "<leader>w", "Manage sessions", "")
-mapkey("n", "<leader>ww", "Manage Sessions", ":AutoSession search<cr>", "mini.pick")
+mapkey("n", "<leader>ww", "Search sessions", ":AutoSession search<cr>", "mini.pick")
+mapkey("n", "<leader>wd", "Delete a session", ":AutoSession deletePicker<cr>", "mini.pick")
mapkey("n", "<leader>ws", "Save current session", ":AutoSession save<cr>")
mapkey("n", "<leader>wr", "Open last session", ":AutoSession restore<cr>")
mapkey("n", "<leader>wp", "Purge orphaned sessions", ":AutoSession purgeOrphaned<cr>")