From 48eca36c6b2833a5d41b96a229c4ccc97ade809a Mon Sep 17 00:00:00 2001 From: triethyl Date: Tue, 5 Aug 2025 22:52:11 -0400 Subject: neovim: added git binds --- pkgs/custom-neovim/config/lua/mappings.lua | 4 +++- pkgs/custom-neovim/design.md | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'pkgs/custom-neovim') diff --git a/pkgs/custom-neovim/config/lua/mappings.lua b/pkgs/custom-neovim/config/lua/mappings.lua index ec5788b..5479cc0 100644 --- a/pkgs/custom-neovim/config/lua/mappings.lua +++ b/pkgs/custom-neovim/config/lua/mappings.lua @@ -47,7 +47,9 @@ mapkey("n", "cc", "Toggle terminal", ":lua Snacks.terminal.toggle()" mapkey("n", "co", "Open new terminal", ":lua Snacks.terminal.open()") -- Git -mapkey("n", "g", "Open lazygit", ":lua Snacks.lazygit()") +mapkey("n", "g", "Manage git", "") +mapkey("n", "gg", "Open lazygit", ":lua Snacks.lazygit()") +mapkey("n", "ga", "Add the current file", ":Git add") -- Other leader keys mapkey("n", "e", "Open file manager", ":lua MiniFiles.open()") diff --git a/pkgs/custom-neovim/design.md b/pkgs/custom-neovim/design.md index 2ba7e31..9eb376e 100644 --- a/pkgs/custom-neovim/design.md +++ b/pkgs/custom-neovim/design.md @@ -13,10 +13,7 @@ - add quick window switcher plugin - make tabby run on highlight groups - add modified tags to tabby -- add gitsigns -- rebase statusline git branch on gitsigns -- add git status to statusline - prevent dropbar filename from truncating - add keybind to activate dropbar drop down menu -- add good git keybinds - find dropbar load autocommand and modify to work on winenter to prevent no dropbar when splitting +- make mini clue work in mini files (maybe autocommand?) -- cgit v1.2.3