lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Use nvim-remote to edit commit message in current nvim instance

Open dudicoco opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. There is an experimental feature which opens a file within the current nvim instance:

os:
  editPreset: nvim-remote

It would be great if this could apply to editing commit messages as well.

Describe the solution you'd like Pressing C will open the edit commit message dialog within the same nvim instance.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context I assume git config affects this, i'm not sure if the default git config behavior of opening a new instance could be overriden?

dudicoco avatar Jul 09 '24 17:07 dudicoco

I assume git config affects this, i'm not sure if the default git config behavior of opening a new instance could be overriden?

I think you can set GIT_EDITOR to override the default git editor. Let me know if it helps you.

mzhubail avatar Aug 04 '24 06:08 mzhubail