3 ms·
Something not mentioned in the article which has changed the way I interact with git repos (and the reason I will never not use LazyVim until something better c
by jmkmay 11mo ago
Something not mentioned in the article which has changed the way I interact with git repos (and the reason I will never not use LazyVim until something better comes along) is just how well the system plays with tmux floating panes.
I have it so that anytime I press ctrl-g in a git repo, I open a floating tmux pane in my current working directory. This might sound "whatever", but it means I don't have to actually be inside neovim or "switch" to the LazyGit UI. It just overlays it on top of whatever I'm doing at the moment in the terminal.
Makes for the most fluid, streamlined git experience ever if you primarily live in the terminal.
- notpublic 11mo agoIndeed! I just found out about tmux display-popup recently. # ~/.tmux.conf bind-key C-g display-popup -E -d "#{pane_current_path}" -xC -yC -w 80% -h 75% "lazygit" Then, in tmux: ctrl-b ctrl-g will open a popup window with lazygit q to quit
- jmkmay 11mo agoPretty much my config exactly. I make mine a bit bigger tho: bind-key -n C-g display-popup -E -w 90% -h 80% -T "LazyGit" -d "#{pane_current_path}" "lazygit"
- witcher 11mo ago(author of the blog post here) Oh yes, I use lazygit as a separate binary (brew installed) from separate terminal shell all the time. No need for nvim! Great to hear you can neatly configure similar UX (popup) with tmux!