1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update vim-fugitive mapping

This commit is contained in:
jdhao 2024-08-17 15:15:30 +02:00
parent eff98d036d
commit 256c37a946

View File

@ -10,8 +10,8 @@ keymap.set("v", "<leader>gb", ":Git blame<cr>", { desc = "Git: blame selected li
-- convert git to Git in command line mode
vim.fn["utils#Cabbrev"]("git", "Git")
keymap.set("n", "<leader>gnb", function()
vim.ui.input({ prompt = "Enter the new branch nmae" }, function(user_input)
keymap.set("n", "<leader>gbn", function()
vim.ui.input({ prompt = "Enter a new branch name" }, function(user_input)
if user_input == nil or user_input == "" then
return
end