feat: fugitive!
This commit is contained in:
@@ -9,5 +9,6 @@
|
|||||||
"nvim-treesitter": { "branch": "master", "commit": "53a6b3993f5803378d4d031bf114c0b125a52ba8" },
|
"nvim-treesitter": { "branch": "master", "commit": "53a6b3993f5803378d4d031bf114c0b125a52ba8" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
|
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
|
||||||
"rose-pine": { "branch": "main", "commit": "00ec4cec924b624920baac9d42eac02e1efcae76" },
|
"rose-pine": { "branch": "main", "commit": "00ec4cec924b624920baac9d42eac02e1efcae76" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "415af52339215926d705cccc08145f3782c4d132" }
|
"telescope.nvim": { "branch": "master", "commit": "415af52339215926d705cccc08145f3782c4d132" },
|
||||||
|
"vim-fugitive": { "branch": "master", "commit": "b068eaf1e6cbe35d1ac100d435cd7f7b74a5c87d" }
|
||||||
}
|
}
|
||||||
|
|||||||
3
.config/nvim/lua/rocketcamel/plugins/fugitive.lua
Normal file
3
.config/nvim/lua/rocketcamel/plugins/fugitive.lua
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
return {
|
||||||
|
{ "tpope/vim-fugitive" },
|
||||||
|
}
|
||||||
@@ -5,3 +5,12 @@ vim.keymap.set("i", "<C-c>", "<Esc>", { noremap = true, silent = true })
|
|||||||
vim.keymap.set("i", "<C-h>", "<Left>", { noremap = true, silent = false })
|
vim.keymap.set("i", "<C-h>", "<Left>", { noremap = true, silent = false })
|
||||||
vim.keymap.set("i", "<C-l>", "<Right>", { noremap = true, silent = true })
|
vim.keymap.set("i", "<C-l>", "<Right>", { noremap = true, silent = true })
|
||||||
vim.keymap.set("v", "<leader>y", '"+y', { noremap = true, silent = true })
|
vim.keymap.set("v", "<leader>y", '"+y', { noremap = true, silent = true })
|
||||||
|
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)
|
||||||
|
vim.keymap.set("n", "<leader>gc", ":Git commit<CR>", { desc = "Git commit" })
|
||||||
|
vim.keymap.set("n", "<leader>ga", function()
|
||||||
|
vim.ui.input({ prompt = "Git add: " }, function(input)
|
||||||
|
if input then
|
||||||
|
vim.cmd("Git add " .. input)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user