Closed Bekaboo closed 1 year ago
Thanks! I'll look into this ASAP. Pretty interesting to me that it opened in a version that didn't even have the plugin active lol.
Not sure why I thought one didn't have the plugin active. But anyways, what terminal emulator are you using? If vim.env.NVIM isn't available, flatten now creates servers for kitty/wezterm splits - have you tried disabling this in your config to see if the issue persists? I'll also try this out with the minimal init right now.
@willothy I'm using wezterm
Hmm, I am as well but can't seem to repro yet, I'll keep trying though.
@willothy I'm using wezterm with tmux and fish shell, if that's related.
Oh! I see, that's intended functionality, added by PR #53. Was able to repro after restarting wezterm. You can disable wezterm/kitty nesting in your config by disabling these options:
one_per = {
kitty = true,
wezterm = true,
},
This was a breaking change and has been a surprise for some people, sorry about that!
Thanks, that fixed it.
Describe the bug File is opened in another nvim instance when I tried to open a file in a normal terminal (not nvim builtin-terminal) using
nvim <filename>
.Mininal config
https://github.com/willothy/flatten.nvim/assets/76579810/b60394e5-3288-4b1e-a711-88831654490d
To Reproduce Steps to reproduce the behavior:
minimal.lua
nvim --clean -u minimal.lua
in one terminalnvim --clean -u minimal.lua <filename>
Expected behavior File is opened in the second nvim instance
Screenshots
Desktop (please complete the following information):
linux 6.4.4-arch1-1
NVIM v0.10.0-dev-623+g92760a7f42
Additional context Can confirm that the bug is introduced after commit
d92c93959e9ac52a00002d6fd64c2d2ca5dd7192
.