Open lazygit in a fullscreen floating window inside Neovim.
- Fullscreen floating lazygit window
- Open files from lazygit directly in Neovim — no nested editors
- vim-tmux-navigator pane navigation (
Ctrl+hjkl) — opt-in viavim_tmux_navigator = true
CleanShot.2026-01-30.at.19.46.31.mp4
Requirements:
lazygitbinary on$PATH
Using lazy.nvim:
{
"fdarian/lazygit.nvim",
cmd = "LazyGit",
keys = {
{ "<leader>lg", "<cmd>LazyGit<cr>" },
},
opts = {
-- Optional: enable vim-tmux-navigator integration
-- https://github.com/christoomey/vim-tmux-navigator
vim_tmux_navigator = true,
},
}When pressing o on a file in lazygit, you can open it directly in the current Neovim instance instead of launching a separate editor.
Make sure nvr is installed, then add to ~/.config/lazygit/config.yml:
os:
open: |
noglob bash -c 'f="$1"; if [ -n "$NVIM" ]; then nvr --remote-tab-silent "$f"; else open "$f"; fi' _ {{filename}}The plugin sets $NVIM automatically so nvr knows which Neovim instance to connect to. Pressing o in lazygit opens the file in a new Neovim tab. The else branch is the fallback when running lazygit outside Neovim — replace open with xdg-open on Linux.
Inspired by previous lazygit integrations: