Skip to content

fdarian/lazygit.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazygit.nvim

Open lazygit in a fullscreen floating window inside Neovim.

Features

CleanShot.2026-01-30.at.19.46.31.mp4

Installation

Requirements:

  • lazygit binary 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,
  },
}

Open files in Neovim

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.

Credits

Inspired by previous lazygit integrations:

About

LazyGit neovim integration that just works as expected

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages