diff options
| author | triethyl <triethylammonium@pm.me> | 2025-08-05 22:52:11 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-08-05 22:52:11 -0400 |
| commit | 48eca36c6b2833a5d41b96a229c4ccc97ade809a (patch) | |
| tree | 2f5bcd90cb4a294b9caa35a951eb2583f7e5e97e /pkgs/custom-neovim/config/lua | |
| parent | 2709e7f94ddb5a81249c8b27162f9b33590b1516 (diff) | |
neovim: added git binds
Diffstat (limited to 'pkgs/custom-neovim/config/lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/mappings.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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", "<leader>cc", "Toggle terminal", ":lua Snacks.terminal.toggle()<cr>" mapkey("n", "<leader>co", "Open new terminal", ":lua Snacks.terminal.open()<cr>") -- Git -mapkey("n", "<leader>g", "Open lazygit", ":lua Snacks.lazygit()<cr>") +mapkey("n", "<leader>g", "Manage git", "") +mapkey("n", "<leader>gg", "Open lazygit", ":lua Snacks.lazygit()<cr>") +mapkey("n", "<leader>ga", "Add the current file", ":Git add<cr>") -- Other leader keys mapkey("n", "<leader>e", "Open file manager", ":lua MiniFiles.open()<cr>") |
