From a4de06f681ac3d1b9f57d40cc34da31c514d261b Mon Sep 17 00:00:00 2001 From: triethyl Date: Wed, 27 Aug 2025 14:01:57 -0400 Subject: neovim: added tab keys --- pkgs/custom-neovim/config/lua/keymaps.lua | 9 ++++++++- pkgs/custom-neovim/todo.md | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/custom-neovim/config/lua/keymaps.lua b/pkgs/custom-neovim/config/lua/keymaps.lua index a96902e..7ca0845 100644 --- a/pkgs/custom-neovim/config/lua/keymaps.lua +++ b/pkgs/custom-neovim/config/lua/keymaps.lua @@ -26,13 +26,20 @@ mapkey("n", "gc", "Git commit", ":Git commit", "mini-git") mapkey("n", "gp", "Git pull", ":Git pull", "mini-git") mapkey("n", "gP", "Git push", ":Git push", "mini-git") +-- Tabs +mapkey("n", "t", "Manage tabs", "") +mapkey("n", "tt", "Go to next tab", ":tabn") +mapkey("n", "tT", "Go to previous tab", ":tabp") +mapkey("n", "to", "Open new tab", ":tabnew") +mapkey("n", "tc", "Close current tab", ":tabclose") + -- Session mapkey("n", "w", "Manage sessions", "") mapkey("n", "ww", "Open a session", ":Autosession search", {"mini.pick"}) mapkey("n", "wd", "Delete a session", ":Autosession delete", {"mini.pick"}) -- Terminal -mapkey("n", "t", "Open terminal", ":botright terminal") +mapkey("n", "c", "Open terminal", ":botright terminal") -- Really delete mapkey({"n", "v"}, "d", "Really delete", [["_d]]) diff --git a/pkgs/custom-neovim/todo.md b/pkgs/custom-neovim/todo.md index 6a3fd4c..c2e47ab 100644 --- a/pkgs/custom-neovim/todo.md +++ b/pkgs/custom-neovim/todo.md @@ -4,3 +4,7 @@ - add git commands (add all and status) - add zoxide plugin - add markdown renderer +- add tab management keys +- add spellcheck to markdown +- fix current tab display + -- cgit v1.2.3