feat: add lazygit
This commit is contained in:
parent
012a23d043
commit
03b24ebaa3
@ -10,5 +10,7 @@ This project contains my dotfiles and scripts for daily usage. In addition to th
|
||||
- dunst
|
||||
- neovim
|
||||
- git
|
||||
- git delta
|
||||
- lazygit
|
||||
- scripts
|
||||
- `compiledoc` - compile a markdown or latex file into pdf using pandoc and tectonic
|
||||
|
17
roles/git/files/lazygit.yml
Normal file
17
roles/git/files/lazygit.yml
Normal file
@ -0,0 +1,17 @@
|
||||
git:
|
||||
paging:
|
||||
colorArg: always
|
||||
pager: delta --paging=never
|
||||
|
||||
customCommands:
|
||||
- key: "<c-p>"
|
||||
command: "git remote prune {{.SelectedRemote.Name}}"
|
||||
context: "remotes"
|
||||
loadingText: "Pruning..."
|
||||
description: "prune deleted remote branches"
|
||||
|
||||
- key: "<c-p>"
|
||||
command: "git branch --merged develop | grep -v '^[ *]*develop$' | xargs git branch -d"
|
||||
context: "localBranches"
|
||||
loadingText: "Pruning..."
|
||||
description: "prune local branches that have been merged to develop"
|
@ -4,6 +4,7 @@
|
||||
name:
|
||||
- git
|
||||
- git-delta
|
||||
- lazygit
|
||||
state: present
|
||||
become: true
|
||||
tags: pc
|
||||
@ -28,3 +29,10 @@
|
||||
dest: ~/.config/git/config
|
||||
mode: '0644'
|
||||
tags: qwerty
|
||||
|
||||
- name: Copy over config for lazygit
|
||||
ansible.builtin.copy:
|
||||
src: lazygit.yml
|
||||
dest: ~/.config/lazygit/config.yml
|
||||
mode: '0644'
|
||||
tags: pc
|
||||
|
@ -36,6 +36,7 @@ require('packer').startup(function()
|
||||
use 'tpope/vim-surround' -- Surrounding
|
||||
use 'tpope/vim-repeat' -- Repeat Surrounding
|
||||
use 'tpope/vim-sleuth' -- Detect Spacing
|
||||
use 'kdheepak/lazygit.nvim' -- Git Client
|
||||
use "tversteeg/registers.nvim" -- Preview Registers
|
||||
use 'windwp/nvim-autopairs' -- Autopairs
|
||||
use 'windwp/nvim-ts-autotag' -- HTML Autopairs
|
||||
@ -434,3 +435,6 @@ map('n', '<Leader>dd', '<cmd>lua require"dapui".toggle()<cr>', { noremap = true
|
||||
|
||||
-- registers preview
|
||||
require("registers").setup()
|
||||
|
||||
-- Lazygit
|
||||
map('n', '<Leader>g', '<cmd>LazyGit<cr>', { noremap = true })
|
||||
|
Loading…
Reference in New Issue
Block a user