Should Neogit
use scratch
buffer for NeogitConsole
buffer?
#1729
FirelightFlagboy
started this conversation in
General
Replies: 1 comment 1 reply
-
Odd that there is a swap file, as that's explicitly disabled when creating buffers: https://github.com/neogitorg/neogit/blob/d0d8698000ca5d9322ea626313634c0dc71650d9/lua/neogit/lib/buffer.lua#L704 I'll experiment with setting it as a scratch buffer and see if there are any consequences for that. Thanks for letting me know |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, today I've encountered this error when using
Neogit
:The
ATTENTION
message was that a swap file for the bufferNeogitConsole
exist and what actions to take.The presence of the swap file was confirmed by listing the list of Neovim swap files under
~/.local/state/nvim/swap
:The incriminated function in the exception is:
neogit/lua/neogit/lib/buffer.lua
Lines 966 to 976 in 7a3daec
I imagine that would be fixed by creating the buffer with
scratch = true
when callingapi.nvim_create_buf({listed}, {scratch})
but I'm not sure of the impact if we do that for all of the created buffer for Neogit (particularly for the buffer to edit the commit message)Beta Was this translation helpful? Give feedback.
All reactions