1
0
Fork 0

Add lazygit

This commit is contained in:
Daniel Kempkens 2021-12-19 21:32:38 +01:00
parent 7a12a5f3c4
commit 96fc9e48d6
4 changed files with 38 additions and 2 deletions

View file

@ -1,3 +1,20 @@
require('FTerm').setup { local fterm = require('FTerm')
border = { '', '', '', '', '', '', '', '' }
fterm.setup {
cmd = 'fish',
border = { '', '', '', '', '', '', '', '' },
} }
local lazygit = fterm:new({
cmd = 'lazygit',
dimensions = {
height = 0.9,
width = 0.9
},
})
function _G.__fterm_lazygit()
lazygit:toggle()
end

View file

@ -86,6 +86,10 @@ function M.setup()
function() require('gitsigns').blame_line() end, function() require('gitsigns').blame_line() end,
"Blame Line" "Blame Line"
}, },
c = {
function() _G.__fterm_lazygit() end,
"lazygit"
},
}, },
d = { d = {
name = "debug", name = "debug",

View file

@ -9,6 +9,7 @@
./programs/nvim ./programs/nvim
./programs/git.nix ./programs/git.nix
./programs/lazygit.nix
./programs/bat.nix ./programs/bat.nix

14
programs/lazygit.nix Normal file
View file

@ -0,0 +1,14 @@
{
programs.lazygit = {
enable = true;
settings = {
git = {
paging = {
colorArg = "always";
useConfig = true;
};
};
};
};
}