GithubHelp home page GithubHelp logo

lazygit not open file in nvim about fm-nvim HOT 3 OPEN

is0n avatar is0n commented on July 24, 2024 4
lazygit not open file in nvim

from fm-nvim.

Comments (3)

raulbethencourt avatar raulbethencourt commented on July 24, 2024

Same problem, but with xplr.

from fm-nvim.

niveK77pur avatar niveK77pur commented on July 24, 2024

vim-floaterm includes its own little binary/script which can be run from within a terminal to open said files into the current neovim instance. I see lazygit seems to open files using the $EDITOR (if set). I mention the vim-floaterm binary, because in this case we could set the EDITOR=floaterm and it will trick lazygit into opening the file into the current vim instance.

HOWEVER, I also found this section in the lazygit docs, which mentions nvim-remote. It allows to open the files in the current neovim instance as well, without intervention by this plugin here. I just gave it a try and it doesn't exactly work either (for me at least, not sure if my setup is problematic). When I launch :terminal and then open lazygit therein, then it opens (e) the file within my current neovim instance. However, when I open lazygit via this plugin it opens a nested neovim instance. I also had to alias my vim to nvr as this lazygit setting made it look for vim instead of nvr for some reason.

If anyone is interested, I'd be curious to know if you get this nvim-remote thing working for lazygit (maybe something is wrong in my setup)? If it does then that's great, this plugins seems to have gone stale for a year now.

from fm-nvim.

piersolenski avatar piersolenski commented on July 24, 2024

Same for GitUI

from fm-nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.