Comments (29)
@Shougo good point. Fixed!
from noice.nvim.
@pBorak you really shouldn't set lazyredraw. That's not an option meant to be set. Only temporarily inside scripts.
from noice.nvim.
@Shougo you are precisely right, I guess I had just never noticed. Apologies for the noise!
from noice.nvim.
I think noice.nvim
should check lazyredraw
option is set and warn.
Because another people have the problem with it.
from noice.nvim.
I am observing that a similar one happens in correspondence of "No write since last changes" (see screenshot):
I have noticed it shortly ago only, not sure if it is intended behaviour or the consequence of one of the latest commits (I mention it here in case it may be useful to debug the original issue as additional information). I may retrieve the logs but they seem to be pretty long: what piece of information is needed?
from noice.nvim.
@pBorak I had the same earlier today and on longer see this happen, so I likely fixed it :)
Can you let me know if you still have it?
from noice.nvim.
@gennaro-tedesco was probably the same. Does it still happen with the latest version?
from noice.nvim.
I have updated the plug-in but I still observe the same behaviour: see video below to showcase what occurs
Screen.Recording.2022-10-06.at.01.34.39.mov
from noice.nvim.
It is really bug?
I think just two error messages are generated.
from noice.nvim.
Please see this.
It is from nvim --clean
.
Two error messages are generated. It is not bug.
from noice.nvim.
So it should be closed?
from noice.nvim.
Just not yet, I have updated the plugin but still see the same issue.
from noice.nvim.
Please upload the reproduce instruction.
I will test it.
from noice.nvim.
@folke
Okay I found the thing that messes this up
If you set vim.opt.lazyredraw
to true the issue still occurs.
from noice.nvim.
Closing this, since Noice simply won't work correctly when lazyredraw is set
from noice.nvim.
Thanks for handling it!
from noice.nvim.
how to disable this warning? I don't set lazyredraw, but my plugin(vim-visual-multi) may set lazyredraw when I use it and I will see this warning.
from noice.nvim.
@Meow-2 they should only set it temporarily, not forever.
from noice.nvim.
Or they probbly do disable it afterwards?
from noice.nvim.
Or they probbly do disable it afterwards?
Yes, vim-visual-multi only set it temporarily, how can I hide this warning?
from noice.nvim.
I jsut added an option. config.health.checker
disables the health checker after setup
from noice.nvim.
I jsut added an option.
config.health.checker
disables the health checker after setup
It works, thank you!
from noice.nvim.
I am also setting vim.o.lazyredraw
temporarily inside the preview callback function of my plugin live-command.nvim
: https://github.com/smjonas/live-command.nvim/blob/ce4b104ce702c7bb9fdff863059af6d47107ca61/lua/live-command/init.lua#L200
I am not sure why this error is shown because it's reset after running the command. I don't want to disable this error globally so would it be possible to detect that this option was only set temporarily and not show an error message in that case?
from noice.nvim.
@smjonas just made a change that checks for lazyredraw
during startup only
from noice.nvim.
Thank you, while that is an improvement, the warning is still shown when previewing the command for the first time, e.g. when typing :Norm A
.
from noice.nvim.
@smjonas it really shouldn't. Lazyredraw is now only checked during noice startup. So after that even if it is set, we no longer show a warning.
Maybe something else is setting lazyredraw? :verbose set lazyredraw?
Or it doesn't get reset?
from noice.nvim.
What I have observed is running :set lazyredraw
manually after noice has already started (i.e. some messages were displayed), it will still cause the warning to be shown. (I updated noice)
from noice.nvim.
@smjonas you're right, sorry. Fixed!
from noice.nvim.
Thank you, can confirm it's fixed now!
from noice.nvim.
Related Issues (20)
- bug: completion item documentation tables with no elements result in "Unknown markup" notification spam HOT 4
- deprecation: `tbl_islist` is deprecated HOT 3
- bug: Format pattern for searching not working as expected
- bug: `E565: Not allowed to change text or change window` error when using with clever-f.vim HOT 3
- bug: Cursor disappears after loading a session HOT 2
- bug: mini.jump `t` doesn't work if the following key comes too late when using with noice.nvim HOT 3
- Configuration Issue: Not able to suppress 'No information available' notification HOT 1
- bug: Error `Invalid window id: ...` when I close the LSP hover window with the new `fclose!` command. HOT 2
- bug: no notification handler registered for "Dir" / "GUI" HOT 5
- bug: inserting an automatic <CR> after easymotion HOT 1
- bug: `cmdline.view` overwrites `cmdline.format.search_down.view` ~50% of the time. HOT 5
- bug: using classic mode for cmdline still have completion window floating middle of the screen HOT 2
- feature: priority of lsp progress HOT 1
- bug: Truncated prompts when using Telescope actions HOT 1
- bug: hide scroll messages HOT 1
- bug: vim.fn.input() now goes to cmdline_input, and breaks HOT 2
- bug: noice.nvim is causing pyright lsp hover docs to show up and I want to disable it
- bug: lag when quitting nvim HOT 9
- bug: Borderless cmdline popups HOT 4
- bug: When run within Zellij, when multiples message popups are displayed, cursor "glitches" into popup HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noice.nvim.