Update something
This commit is contained in:
parent
e3c94cce54
commit
147ca5ddbc
81 changed files with 3055 additions and 326 deletions
3
nvim.bak/lua/config/plugins/git/fugitive.lua
Normal file
3
nvim.bak/lua/config/plugins/git/fugitive.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
"tpope/vim-fugitive",
|
||||
}
|
9
nvim.bak/lua/config/plugins/git/gitsigns.lua
Normal file
9
nvim.bak/lua/config/plugins/git/gitsigns.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
config = function()
|
||||
require("gitsigns").setup()
|
||||
|
||||
vim.keymap.set("n", "<leader>gh", "<cmd>Gitsigns preview_hunk<CR>", { desc = "Preview git hunks" })
|
||||
vim.keymap.set("n", "<leader>gb", "<cmd>Gitsigns toggle_current_line_blame<CR>", { desc = "Toggle git blame" })
|
||||
end,
|
||||
}
|
20
nvim.bak/lua/config/plugins/git/lazygit.lua
Normal file
20
nvim.bak/lua/config/plugins/git/lazygit.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
"kdheepak/lazygit.nvim",
|
||||
lazy = true,
|
||||
cmd = {
|
||||
"LazyGit",
|
||||
"LazyGitConfig",
|
||||
"LazyGitCurrentFile",
|
||||
"LazyGitFilter",
|
||||
"LazyGitFilterCurrentFile",
|
||||
},
|
||||
-- optional for floating window border decoration
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
||||
-- order to load the plugin when the command is run for the first time
|
||||
keys = {
|
||||
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "Open lazy git" },
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue