Skip to content

Commit 4c9724e

Browse files
committed
hello lazygit
1 parent efd9006 commit 4c9724e

File tree

8 files changed

+178
-0
lines changed

8 files changed

+178
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ The tools that are actually used are as follows.
4949
| [neovim](https://github.com/neovim/neovim) | [./config/nvim](./config/nvim) | Text Editor |
5050
| [zellij](https://github.com/zellij-org/zellij) | [./config/zellij](./config/zellij) | Terminal Multiplexer |
5151
| [ghostty](https://github.com/ghostty-org/ghostty) | [./config/ghostty](./config/ghostty) | Terminal Emulator |
52+
| [lazygit](https://github.com/jesseduffield/lazygit) | [./config/lazygit](./config/lazygit) | Git Terminal UI |
5253
| [gitui](https://github.com/extrawurst/gitui) | [./config/gitui](./config/gitui) | Git Terminal UI |
5354
| [karabiner](https://github.com/pqrs-org/Karabiner-Elements) | [./config/karabiner](./config/karabiner) | Keyboard Customizer |

config/bash/.bashrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ alias gs='git status'
3232
alias gsw='git switch'
3333
alias gg='git graph'
3434
alias gu='gitui'
35+
alias lg='lazygit'
3536

3637
# typo correction
3738
alias sl='ls'

config/lazygit/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
state.yml

config/lazygit/config.yml

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
gui:
2+
language: 'en'
3+
scrollHeight: 2
4+
scrollPastBottom: true
5+
sidePanelWidth: 0.3333
6+
expandFocusedSidePanel: false
7+
mainPanelSplitMode: "flexible"
8+
theme:
9+
lightTheme: false
10+
activeBorderColor:
11+
- magenta
12+
- bold
13+
inactiveBorderColor:
14+
- white
15+
optionsTextColor:
16+
- blue
17+
selectedLineBgColor:
18+
- default
19+
selectedRangeBgColor:
20+
- blue
21+
commitLength:
22+
show: true
23+
mouseEvents: true
24+
skipDiscardChangeWarning: false
25+
skipStashWarning: true
26+
git:
27+
paging:
28+
colorArg: always
29+
useConfig: false
30+
merging:
31+
manualCommit: false
32+
args: ""
33+
pull:
34+
mode: "merge"
35+
skipHookPrefix: WIP
36+
autoFetch: true
37+
branchLogCmd: "git log --graph --color=always --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'"
38+
allBranchesLogCmd: "git log --graph --all --color=always --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'"
39+
overrideGpg: false
40+
disableForcePushing: false
41+
update:
42+
method: prompt
43+
days: 14
44+
reporting: "undetermined"
45+
confirmOnQuit: false
46+
quitOnTopLevelReturn: true
47+
disableStartupPopups: false
48+
notARepository: "prompt"
49+
keybinding:
50+
universal:
51+
quit: "q"
52+
quit-alt1: "<c-c>"
53+
return: "<esc>"
54+
quitWithoutChangingDirectory: "Q"
55+
togglePanel: "<tab>"
56+
prevItem: "<up>"
57+
nextItem: "<down>"
58+
prevItem-alt: "k"
59+
nextItem-alt: "t"
60+
prevPage: ","
61+
nextPage: "."
62+
gotoTop: "<"
63+
gotoBottom: ">"
64+
prevBlock: "<left>"
65+
nextBlock: "<right>"
66+
prevBlock-alt: "K"
67+
nextBlock-alt: "T"
68+
nextMatch: 'U'
69+
prevMatch: 'O'
70+
optionMenu: "x"
71+
optionMenu-alt1: "?"
72+
select: "<space>"
73+
goInto: "<enter>"
74+
confirm: "<enter>"
75+
confirm-alt1: "y"
76+
remove: "d"
77+
new: "n"
78+
edit: "e"
79+
openFile: "o"
80+
scrollUpMain: "<pgup>"
81+
scrollDownMain: "<pgdown>"
82+
scrollUpMain-alt2: "<c-u>"
83+
scrollDownMain-alt2: "<c-d>"
84+
executeShellCommand: ":"
85+
createRebaseOptionsMenu: "m"
86+
pushFiles: "P"
87+
pullFiles: "p"
88+
refresh: "R"
89+
createPatchOptionsMenu: "<c-p>"
90+
nextTab: "N"
91+
prevTab: "H"
92+
nextScreenMode: "+"
93+
prevScreenMode: "_"
94+
undo: "u"
95+
redo: "<c-r>"
96+
filteringMenu: "<c-s>"
97+
diffingMenu: "W"
98+
diffingMenu-alt: "<c-e>"
99+
copyToClipboard: "<c-o>"
100+
submitEditorText: "<enter>"
101+
appendNewline: "<tab>"
102+
status:
103+
checkForUpdate: "U"
104+
recentRepos: "<enter>"
105+
files:
106+
commitChanges: "c"
107+
commitChangesWithoutHook: "w"
108+
amendLastCommit: "A"
109+
commitChangesWithEditor: "C"
110+
ignoreFile: "i"
111+
refreshFiles: "r"
112+
stashAllChanges: "s"
113+
viewStashOptions: "S"
114+
toggleStagedAll: "a"
115+
viewResetOptions: "D"
116+
fetch: "f"
117+
branches:
118+
createPullRequest: "o"
119+
checkoutBranchByName: "w"
120+
forceCheckoutBranch: "F"
121+
rebaseBranch: "r"
122+
mergeIntoCurrentBranch: "M"
123+
viewGitFlowOptions: "i"
124+
fastForward: "f"
125+
pushTag: "P"
126+
setUpstream: "U"
127+
fetchRemote: "f"
128+
createTag: ""
129+
commits:
130+
squashDown: "s"
131+
renameCommit: "r"
132+
renameCommitWithEditor: "R"
133+
viewResetOptions: "g"
134+
markCommitAsFixup: "f"
135+
createFixupCommit: "F"
136+
squashAboveCommits: "S"
137+
amendToCommit: "A"
138+
pickCommit: "p"
139+
revertCommit: "d"
140+
cherryPickCopy: "c"
141+
cherryPickCopyRange: "C"
142+
pasteCommits: "v"
143+
tagCommit: "G"
144+
checkoutCommit: "<space>"
145+
resetCherryPick: "<c-R>"
146+
copyCommitMessageToClipboard: "<c-y>"
147+
stash:
148+
popStash: "g"
149+
commitFiles:
150+
checkoutCommitFile: "c"
151+
main:
152+
toggleDragSelect: "v"
153+
toggleDragSelect-alt: "V"
154+
toggleSelectHunk: "a"
155+
pickBothHunks: "b"
156+
submodules:
157+
init: "i"
158+
update: "U"
159+
bulkMenu: "b"

config/nvim/lazy-lock.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"copilot.vim": { "branch": "release", "commit": "87038123804796ca7af20d1b71c3428d858a9124" },
1313
"gitsigns.nvim": { "branch": "main", "commit": "5f808b5e4fef30bd8aca1b803b4e555da07fc412" },
1414
"lazy.nvim": { "branch": "main", "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" },
15+
"lazygit.nvim": { "branch": "main", "commit": "77a0d42943d8265271e6e6beaed72da54eeb17e7" },
1516
"lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
1617
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
1718
"mason-lspconfig.nvim": { "branch": "main", "commit": "c6c686781f9841d855bf1b926e10aa5e19430a38" },

config/nvim/lua/plugins/git.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,17 @@ return {
3434
},
3535
},
3636
},
37+
{
38+
"kdheepak/lazygit.nvim",
39+
lazy = true,
40+
keys = {
41+
{
42+
"<leader>lg",
43+
function()
44+
vim.cmd("LazyGit")
45+
end,
46+
desc = "LazyGit",
47+
},
48+
},
49+
},
3750
}

config/zsh/.zshrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ alias gs='git status'
8181
alias gsw='git switch'
8282
alias gg='git graph'
8383
alias gu='gitui'
84+
alias lg='lazygit'
8485
alias -g L='| less'
8586
alias -g G='| grep'
8687

etc/symlink.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ _symlink "$_DOTFILES_DIR"/config/ghostty "$HOME"/.config/ghostty
5555
_symlink "$_DOTFILES_DIR"/config/git/.gitconfig "$HOME"/.gitconfig
5656
_symlink "$_DOTFILES_DIR"/config/git/ignore "$HOME"/.config/git/ignore
5757
_symlink "$_DOTFILES_DIR"/config/gitui "$HOME"/.config/gitui
58+
_symlink "$_DOTFILES_DIR"/config/lazygit "$HOME"/.config/lazygit
5859

5960
# vim / neovim
6061
_symlink "$_DOTFILES_DIR"/config/vim "$HOME"/.vim

0 commit comments

Comments
 (0)