From 5040adf295048becffc6fea51d721cfd84a26eed Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Mon, 8 Apr 2024 23:43:06 +0200 Subject: [PATCH] LazyGit support. --- _cli/lazygit/config.yml | 23 +++++++++++++++++++++++ _cli/nvim/lua/plugins/init.lua | 7 +++++++ _cli/zsh/aliases.zsh | 1 + 3 files changed, 31 insertions(+) create mode 100644 _cli/lazygit/config.yml diff --git a/_cli/lazygit/config.yml b/_cli/lazygit/config.yml new file mode 100644 index 0000000..97894e6 --- /dev/null +++ b/_cli/lazygit/config.yml @@ -0,0 +1,23 @@ +gui: + language: 'auto' # one of 'auto' | 'en' | 'zh-CN' | 'zh-TW' | 'pl' | 'nl' | 'ja' | 'ko' | 'ru' + timeFormat: '2006-01-02' # https://pkg.go.dev/time#Time.Format + shortTimeFormat: '3:04PM' + theme: + selectedLineBgColor: + - reverse + commitLength: + show: true + mouseEvents: false + showFileTree: false # for rendering changes files in a tree format + showListFooter: true # for seeing the '5 of 20' message in list panels + showRandomTip: false + showCommandLog: false + nerdFontsVersion: "3" # nerd fonts version to use ("2" or "3"); empty means don't show nerd font icons +git: + commit: + signOff: true + mainBranches: [master] + autoFetch: false + autoRefresh: false +disableStartupPopups: true +notARepository: 'skip' # one of: 'prompt' | 'create' | 'skip' | 'quit' diff --git a/_cli/nvim/lua/plugins/init.lua b/_cli/nvim/lua/plugins/init.lua index c0e51ee..23adc87 100644 --- a/_cli/nvim/lua/plugins/init.lua +++ b/_cli/nvim/lua/plugins/init.lua @@ -40,6 +40,13 @@ return { }, }, + { + "kdheepak/lazygit.nvim", + keys = { + { "lg", "LazyGit", desc = "LazyGit" }, + }, + } + -- Install a plugin -- { -- "max397574/better-escape.nvim", diff --git a/_cli/zsh/aliases.zsh b/_cli/zsh/aliases.zsh index 6d567f8..ccb542a 100644 --- a/_cli/zsh/aliases.zsh +++ b/_cli/zsh/aliases.zsh @@ -1,6 +1,7 @@ alias ga='git add .; git commit --no-edit --amend; git push --force-with-lease' alias gae='git add .; git commit --amend; git push --force-with-lease' alias less='less -R' +alias lg="lazygit" alias qt="dbus-run-session qtile start -b wayland" if [[ $(command -v bat) ]]; then