~torresjrjr/public-inbox

3 2

Popup flashes

Max Schillinger <maxschillinger@web.de>
Details
Message ID
<CWIJ0JADJ6CW.2BJMXXHZTKZ10@web.de>
DKIM signature
missing
Download raw message
Hello Byron,

thank you for vim-haredoc.

I have problems using it:

In vim 9.0.2010, I see a popup flashing for a fraction of a second when 
I use the K keybinding. It disappears so quickly that I can't even read 
what it shows.

gK works as expected.

When I start Neovim 0.9.4 with vim-haredoc installed, I get this error 
(on startup):

Error detected while processing /home/max/.dotfiles/vim/.vim/pack/plugins/start/vim-haredoc/plugin/haredoc.vim:
line   83:
E126: Missing :endfunction

Any ideas what could cause these errors?

Best regards,
Max
Max Schillinger <maxschillinger@web.de>
Details
Message ID
<CWK3NMTG6YKF.344NVQDXG2TMU@web.de>
In-Reply-To
<CWIJ0JADJ6CW.2BJMXXHZTKZ10@web.de> (view parent)
DKIM signature
missing
Download raw message
On Thu Oct 26, 2023 at 6:53 PM CEST, Max Schillinger wrote:
> In vim 9.0.2010, I see a popup flashing for a fraction of a second 
> when I use the K keybinding. It disappears so quickly that I can't 
> even read what it shows.

This was caused by the LESS environment variable. See my patch:
https://lists.sr.ht/~torresjrjr/public-inbox/patches/46171

> When I start Neovim 0.9.4 with vim-haredoc installed, I get this error 
> (on startup):
>
> Error detected while processing /home/max/.dotfiles/vim/.vim/pack/plugins/start/vim-haredoc/plugin/haredoc.vim:
> line   83:
> E126: Missing :endfunction

This is caused by a bug in Neovim. See issue #25810:
https://github.com/neovim/neovim/issues/25810

Apart from that: Neovim doesn't have the features 'popupwin' and 
'terminal'. The fallback using ':!haredoc' is not very useable because 
it prints the escape codes for the colors as text. I think I'll create 
another patch to provide minimal support for Neovim.
Details
Message ID
<CWK45A5RNQP7.194XNPR7H3W25@torresjrjr.com>
In-Reply-To
<CWK3NMTG6YKF.344NVQDXG2TMU@web.de> (view parent)
DKIM signature
missing
Download raw message
On Sat Oct 28, 2023 at 2:17 PM BST, Max Schillinger wrote:
> On Thu Oct 26, 2023 at 6:53 PM CEST, Max Schillinger wrote:
> > When I start Neovim 0.9.4 with vim-haredoc installed, I get this error 
> > (on startup):
> >
> > Error detected while processing /home/max/.dotfiles/vim/.vim/pack/plugins/start/vim-haredoc/plugin/haredoc.vim:
> > line   83:
> > E126: Missing :endfunction
>
> This is caused by a bug in Neovim. See issue #25810:
> https://github.com/neovim/neovim/issues/25810

Interesting. I don't use neovim, only vim.

> Apart from that: Neovim doesn't have the features 'popupwin' and 
> 'terminal'. The fallback using ':!haredoc' is not very useable because 
> it prints the escape codes for the colors as text. I think I'll create 
> another patch to provide minimal support for Neovim.

Does neovim have it's own version of 'popupwin' and 'terminal'? Again,
not familiar with neovim. Otherwise, passing -R to less via $LESS might
solve the problem. Would take a patch.

---

Thanks for trying vim-haredoc and hare.
Max Schillinger <maxschillinger@web.de>
Details
Message ID
<CWK4QI7WGOXR.26UADNQ9GU1K4@web.de>
In-Reply-To
<CWK45A5RNQP7.194XNPR7H3W25@torresjrjr.com> (view parent)
DKIM signature
missing
Download raw message
On Sat Oct 28, 2023 at 3:40 PM CEST, Byron Torres wrote:
> Does neovim have it's own version of 'popupwin' and 'terminal'? Again,
> not familiar with neovim. Otherwise, passing -R to less via $LESS might
> solve the problem. Would take a patch.

Yes, it has ":terminal" and floating windows:

https://neovim.io/doc/user/nvim_terminal_emulator.html
https://neovim.io/doc/user/api.html#api-floatwin

Filters (:!command) don't support escape sequences in Neovim 
deliberately.

I have sent you an alternative patch which opens a terminal with colored 
output instead of a filter:

https://lists.sr.ht/~torresjrjr/public-inbox/patches/46178
Reply to thread Export thread (mbox)