ITADN

[Bug] Cancelling grug-far when opened with windowCreationCommand = "", closes nvim

#565Closedwaldnzwrld 创建于 2026-01-31
W
waldnzwrldcommented
In my current setup I am not using any tab manager and work from my laptop, so a split window is not a good experience for a split. I am using folke/snacks picker to manage my buffers. Because of this I want grug-far to just open in a full window buffer for legibility. I used `windowCreationCommand = ""` to open the plugin in a plain ol buffer (not tab, not split) When I use `close` hotkey `<localleader>c` my nvim session is closed. I would expect the close action to be a `bufferdelete`, but it appears to be performing a different action. Problem lies here https://github.com/MagicDuck/grug-far.nvim/blob/14babc9b4520184d9696ef282eb7ac20687d4373/lua/grug-far/actions/close.lua#L28-L30 ### Steps to reproduce - set `windowCreationCommand = ""` in grug-far options - reload config - launch grug-far - use the close hotkey ### Expected behaviour Next non terminal buffer will be selected ### Actual behaviour nvim session is closed
关闭于 2026-02-03 3 条评论