Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy does not display floating UI window from remote UI #1626

Closed
3 tasks done
bkoropoff opened this issue Jul 7, 2024 · 0 comments · Fixed by #1628
Closed
3 tasks done

Lazy does not display floating UI window from remote UI #1626

bkoropoff opened this issue Jul 7, 2024 · 0 comments · Fixed by #1628
Labels
bug Something isn't working

Comments

@bkoropoff
Copy link
Contributor

Did you check docs and existing issues?

  • I have read all the lazy.nvim docs
  • I have searched the existing issues of lazy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.0

Operating system/version

Fedora Linux 40

Describe the bug

When running Lazy after using nvim --remote-ui to attach to a headless nvim instance, Lazy commands do not pop up a UI in a floating window.

Steps To Reproduce

Works

nvim -u repro.lua
q
:Lazy

Lazy's floating window appears as expected (both from first-time initialization, and from :Lazy.

Doesn't Work

Run in background:

nvim --headless --listen ./nvim-socket -u repro.lua

Run in foreground:

nvim --server ./nvim-socket --remote-ui
:Lazy

No floating window appears.

Expected Behavior

Floating UI should appear.

Repro

-- DO NOT change the paths and don't remove the colorscheme
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/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@bkoropoff bkoropoff added the bug Something isn't working label Jul 7, 2024
bkoropoff added a commit to bkoropoff/lazy.nvim that referenced this issue Jul 7, 2024
Check whether nvim is currently headless, not whether it was headless at startup.
@folke folke closed this as completed in 2dfccd7 Jul 8, 2024
folke pushed a commit that referenced this issue Jul 8, 2024
🤖 I have created a release *beep* *boop*
---


##
[11.10.4](v11.10.3...v11.10.4)
(2024-07-08)


### Bug Fixes

* **rocks:** try building anyway even when prerequisits have not been
met. (will likely fail)
([f0324de](f0324de))
* **ui:** don't treat suspended as headless. Closes
[#1626](#1626)
([2dfccd7](2dfccd7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant