Closed Leandros closed 11 months ago
I am also experiencing this :sob:
@rustysec, as a workaround, you can remove minwidth
until it's fixed.
I took it out, but telescope still causes the error :man_shrugging: I haven't spent any time trying to debug it at this point, maybe I will have some time later.
I will try to look into this today, definitely important to get this working ASAP. I haven't been able to reproduce without the minwidth property set though, not sure what would be causing that.
I'm using it inside my lazyvim config, the telescope error pops without any setup params or with the defaults minus the minwidth
property. I can try to debug it a bit more this evening.
I'm using it inside my lazyvim config, the telescope error pops without any setup params or with the defaults minus the
minwidth
property. I can try to debug it a bit more this evening.
Sounds good, thanks!
It's working. Brilliant! Thank you.
I am still experiencing this issue with all popup windows does anyone have a fix for this?
Do you use master? Can you provide a reproducer?
Here is a minimal config file you can modify. Save as repro.lua and run with nvim -u repro.lua
. Once you have a reproducer create a tarball of the ~/.repro directory:
-- DO NOT change the paths and don't remove focus :-)
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/nvim-focus/focus.nvim", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"nvim-focus/focus.nvim",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
require('focus').setup()
-- add anything else here
I have checked that the problem keeps happening in sessions created with the latest version when restoring sessions early after opening Neovim. This is more noticeable in weak processors like ARM, when typically around 5 seconds must be waited before restoring the session to not get the error.
Apart from the notification message, the result is barbar buffers are not loaded in my case.
Note: I have set lazy=false
in focus.nvim configuration to load it as soon as possible.
Thanks!
a) This issue is already closed as it has been fixed, if you're running into a new issue please create a new bug b) Please create a minimal reproducer, see https://github.com/nvim-focus/focus.nvim/tree/master/extras
OK, I'm busy now but I will open a new issue in a couple of weeks, thanks.
I've followed this advise still have same issue https://github.com/Shatur/neovim-session-manager/issues/47#issuecomment-1195760661 for me, the scrolloff is set to 0 after restore sessions.
I have tried to reproduce it using the repro.lua without success, but I have read the session files and I have noticed that removing the forced set winwidth=1
of those files fixes the issue. I don't know which thing is setting them though, because it does not happen in the repro.lua file loading persisted and focus.
Thanks!
I have tried to reproduce it using the repro.lua without success, but I have read the session files and I have noticed that removing the forced
set winwidth=1
of those files fixes the issue. I don't know which thing is setting them though, because it does not happen in the repro.lua file loading persisted and focus.Thanks!
Maybe you are using lazyvim? They set minwidth default option as I mentioned in readme in recent pr, you can try comment out that setting in lazyvim’s option.lua.
Exactly, I use LazyVim and they set winminwidth=5
in https://github.com/LazyVim/LazyVim/commit/4c2ac6b7bfe5e39dc70b558c3ed4e3e0f84c8bab (I don't know why).
Setting it to 0 in options.lua
fixes the issue, I will report it in LazyVim repository.
Thanks!
Steps to reproduce:
nvim -u vimrc
(minimalvimrc
below)plenary.nvim
popup with<leader>fg
(<leader>
is configured to be<space>
)I figured out that
is the source of the error, once the
minwidth
is removed, no error is thrown.Minimal Vimrc:
(using
vundle
for package management)NeoVim Version:
Full Error: