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

Neovim hangs right after running :Glow file #119

Open
gvolpe opened this issue Mar 29, 2023 · 7 comments
Open

Neovim hangs right after running :Glow file #119

gvolpe opened this issue Mar 29, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@gvolpe
Copy link

gvolpe commented Mar 29, 2023

Describe the bug

  • Neovim version: v0.9.0-dev-cbd4480
  • glow.nvim version: Latest main, commit a3f24fd
  • OS: NixOS 23.05.20230317.b573a7f (Stoat) x86_64

Configuration:

require('glow').setup({
  glow_path = "/nix/store/iakavyzx55i95i2ysylnfdm3xn8d21k1-glow-1.5.0/bin/glow",
  border = "shadow", 
  pager = true,
  width = 120,
})

To Reproduce
Steps to reproduce the behavior:

  1. Run :Glow file.md and the file is displayed on a floating window.
  2. Neovim becomes unresponsive to further inputs, can't even close the floating window.

There are no logs under ~/.cache/nvim/log, so I'm not sure how to debug this. Any ideas?

Expected behavior
It should not hang.

@gvolpe gvolpe added the bug Something isn't working label Mar 29, 2023
@ellisonleao
Copy link
Owner

hey @gvolpe by "hangs" what do you mean exactly? Does it open a floating window with nothing inside? Does it freezes the editor and you can't type anything?

@gvolpe
Copy link
Author

gvolpe commented Mar 30, 2023

@ellisonleao apologies for the poor description. I've made a video to demonstrate the issue:

glow-2023-03-30_10.06.36.mp4

@johnmathews
Copy link

I have this problem too.

@JMulder99
Copy link

JMulder99 commented Apr 6, 2023

Could you @gvolpe try turning off pager, so set pager = false?

I also get an unresponsive window when turning on the pager option. It works fine when this is turned off (by default).

For debugging:

  • When I mouse click in the unresponsive window (so with pager = true), it unfreezes and is responsive to further keyboard typing.
  • It also start the Glow window with the cursor at the bottom t seems.
  • Defining other variables does not freeze the window

@gvolpe
Copy link
Author

gvolpe commented Apr 7, 2023

@JMulder99 I can confirm pager = false fixes the issue. I have the mouse completely disabled on Neovim, so I never tried clicking.

@jimigrunge
Copy link

I also have this issue using the newly released v0.9.0. I noticed that when it freezes my status line section that displays which mode I'm in (Normal, Insert, etc) says 'Terminal'. Once I click the window with my mouse it changes to 'Normal' and becomes responsive again.

Can confirm the 'pager' solution did work for me.

@junkblocker
Copy link

There's also some interaction with some :terminal settings. I can <C-\><C-n> to get cursor in and then q or Esc work.

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

No branches or pull requests

6 participants