udpates
This commit is contained in:
parent
9ca3c33cd2
commit
f703852dd5
13 changed files with 166 additions and 437 deletions
30
lua/plugins/lazygit.lua
Normal file
30
lua/plugins/lazygit.lua
Normal file
|
@ -0,0 +1,30 @@
|
|||
function prereqs()
|
||||
local output = vim.fn.system({
|
||||
"which",
|
||||
"lazygit",
|
||||
})
|
||||
if output == nil or output == "" then
|
||||
print("Installing lazygit with rtx")
|
||||
-- if v:shell_error != 0 then
|
||||
vim.fn.system({
|
||||
"rtx",
|
||||
"global",
|
||||
"lazygit@latest",
|
||||
})
|
||||
vim.fn.system({
|
||||
"rtx",
|
||||
"install",
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
"kdheepak/lazygit.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
build = prereqs,
|
||||
keys = {
|
||||
{ "<leader>gg", "<cmd>LazyGit<cr>", desc = "Open lazy git ui" },
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue