Closed Amleto closed 2 months ago
Oh.. true. If you disable the staged diffs it wont try to split. TBH i don't recommend using floating windows - just use a tab. I don't want to ship a layout engine for managing floating windows like telescope 😅 too many other things that are higher impact/interest
@CKolkey And how do we disable the staged diffs? I am seeing the same problem:
If you have the commit editor set to "floating", the diff split will never be shown: https://github.com/NeogitOrg/neogit/pull/1481
@CKolkey And how do we set the commit editor not to be "floating"?
Oh, it's not by default. Maybe you have something in your config that is doing that?
I have the same issue caused by the following configuration:
commit_editor = {
kind = "vsplit",
},
When there is pre-commit hook, which takes more than console_timeout
(2000
by default) - neogit console appears and after that it causes the error
@CKolkey
I have the same issue caused by the following configuration:
commit_editor = { kind = "vsplit", },
When there is pre-commit hook, which takes more than
console_timeout
(2000
by default) - neogit console appears and after that it causes the error @CKolkey
I do not have that, in my case it is:
require("neogit").setup(
{
commit_editor={
kind="split"
}
})
Description
If commit_editor.kind is set to "floating", when I try to commit I get an exception that floating window cannot be split.
Neovim version
v0.10.0 Release
Operating system and version
Win11/wsl Ubuntu 20.04
Steps to reproduce
Stage something then 'cc' to trigger the commit editor
Expected behavior
Float window opens with no exceptions
Actual behavior
Exception thrown because diffs are attempted to be displayed by splitting the float window (but float windows can't be split, apparently)
Minimal config