siduck / dotfiles

dotfiles for my beautiful rices!
910 stars 75 forks source link

Neovim doesn't work as git core.editor #22

Closed toantk238 closed 1 year ago

toantk238 commented 1 year ago

If I set neovim as editor of git as

[core]
  editor = nvim
  autocrlf = input

Anytime I try to commit, it always show

hint: Waiting for your editor to close the file... error: There was a problem with the editor 'nvim'.
Please supply the message using either -m or -F option.

If I set editor = nvim --clean, it works. My nvim config is NvChad v2.0 + your neovim config @siduck

siduck commented 1 year ago

@toantk238 dont use my custom config, it has some autocmds related to my st terminal which wont work for other systems!

try this custom config https://github.com/NvChad/example_config

toantk238 commented 1 year ago

Thanks @siduck I will give it a try

toantk238 commented 1 year ago

@siduck I just comment the line

require("custom.autocmds")

and it works like a charm.

siduck commented 1 year ago

@siduck I just comment the line

require("custom.autocmds")

and it works like a charm.

yes because that has some code related to specifically my terminal only! so it might crash on other systems.