feat: fugitive
This commit is contained in:
@@ -51,9 +51,9 @@ return {
|
||||
-- engine = 'ripgrep' is default, but 'astgrep' can be specified
|
||||
});
|
||||
|
||||
vim.keymap.set("n", "<leader>g", function()
|
||||
vim.keymap.set("n", "<leader>gf", function()
|
||||
vim.cmd [[GrugFar]]
|
||||
end, { desc = "Run GrugFar" })
|
||||
end, { desc = "GrugFar" })
|
||||
end
|
||||
}, {
|
||||
"folke/flash.nvim",
|
||||
@@ -135,7 +135,6 @@ return {
|
||||
"yetone/avante.nvim",
|
||||
event = 'VeryLazy',
|
||||
lazy = false,
|
||||
build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false",
|
||||
dependencies = {
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
@@ -236,5 +235,11 @@ return {
|
||||
},
|
||||
}
|
||||
end
|
||||
}, {
|
||||
'tpope/vim-fugitive',
|
||||
config = function()
|
||||
vim.keymap.set('n', '<leader>gs', ':Git<CR>', {desc = "Git Status"})
|
||||
vim.keymap.set('n', '<leader>gd', ':Git diff<CR>', {desc = "Git Diff"})
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,24 +85,5 @@ return {
|
||||
---@module 'render-markdown'
|
||||
---@type render.md.UserConfig
|
||||
opts = {},
|
||||
},{
|
||||
'akinsho/toggleterm.nvim',
|
||||
config = function()
|
||||
local Terminal = require('toggleterm.terminal').Terminal
|
||||
local lazygit = nil
|
||||
|
||||
function _lazygit_toggle()
|
||||
if lazygit == nil then
|
||||
lazygit = Terminal:new({
|
||||
cmd = "lazygit",
|
||||
hidden = true,
|
||||
direction = 'float',
|
||||
})
|
||||
end
|
||||
lazygit:toggle()
|
||||
end
|
||||
|
||||
vim.api.nvim_set_keymap("n", "<leader>lg", "<cmd>lua _lazygit_toggle()<CR>", {noremap = true, silent = true})
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user