Skip to content

Commit

Permalink
Remove lazygit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rypac committed Aug 28, 2024
1 parent fa035b7 commit da5702f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 26 deletions.
1 change: 0 additions & 1 deletion dotfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ dotfiles_link() {
link git "$XDG_CONFIG_HOME/git"
link ghc "$XDG_CONFIG_HOME/ghc"
link ideavim "$XDG_CONFIG_HOME/ideavim"
link lazygit "$XDG_CONFIG_HOME/lazygit"
link npm "$XDG_CONFIG_HOME/npm"
link nvim "$XDG_CONFIG_HOME/nvim"
link tig "$XDG_CONFIG_HOME/tig"
Expand Down
5 changes: 0 additions & 5 deletions lazygit/config.yml

This file was deleted.

1 change: 0 additions & 1 deletion mac/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ brew "git"
brew "gnupg"
brew "hlint"
brew "jq"
brew "lazygit"
brew "neovim"
brew "ripgrep"
brew "ruff"
Expand Down
20 changes: 2 additions & 18 deletions nvim/plugin/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,9 @@ end, {
end,
})

vim.api.nvim_create_user_command("Lazygit", function(opts)
if opts.args ~= "" then
vim.cmd("terminal lazygit " .. opts.args)
else
vim.cmd("terminal lazygit")
end
end, {
desc = "Open lazygit in a terminal",
nargs = "*",
complete = function(arg, _, _)
return vim.tbl_filter(function(name)
return vim.startswith(name, arg)
end, { "status", "branch", "log", "stash" })
end,
})

vim.api.nvim_create_autocmd("TermClose", {
desc = "Clear terminal on exiting Lazygit or Tig",
pattern = { "term://*lazygit*", "term://*tig*" },
desc = "Clear terminal on exiting Tig",
pattern = "term://*tig*",
group = vim.api.nvim_create_augroup("UserQuitGitClient", { clear = true }),
callback = function(args)
vim.cmd("bdelete! " .. args.buf)
Expand Down
1 change: 0 additions & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ alias la='ls -lahF --color=auto'
alias f=finder
alias ql=quick-look
alias manp=man-preview
alias lg=lazygit

# Clear the clipboard
function pbclear() {
Expand Down

0 comments on commit da5702f

Please sign in to comment.