Add lazygit
This commit is contained in:
parent
7a12a5f3c4
commit
96fc9e48d6
4 changed files with 38 additions and 2 deletions
|
@ -1,3 +1,20 @@
|
|||
require('FTerm').setup {
|
||||
border = { '╭', '─', '╮', '│', '╯', '─', '╰', '│' }
|
||||
local fterm = require('FTerm')
|
||||
|
||||
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
|
||||
|
|
|
@ -86,6 +86,10 @@ function M.setup()
|
|||
function() require('gitsigns').blame_line() end,
|
||||
"Blame Line"
|
||||
},
|
||||
c = {
|
||||
function() _G.__fterm_lazygit() end,
|
||||
"lazygit"
|
||||
},
|
||||
},
|
||||
d = {
|
||||
name = "debug",
|
||||
|
|
1
home.nix
1
home.nix
|
@ -9,6 +9,7 @@
|
|||
./programs/nvim
|
||||
|
||||
./programs/git.nix
|
||||
./programs/lazygit.nix
|
||||
|
||||
./programs/bat.nix
|
||||
|
||||
|
|
14
programs/lazygit.nix
Normal file
14
programs/lazygit.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
programs.lazygit = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
git = {
|
||||
paging = {
|
||||
colorArg = "always";
|
||||
useConfig = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue