Comments (46)
I'm sorry to say this, but this is not a minimal repro. Please try with default LazyVim installation. Does this behavior occur? Then start enabling the Extras one by one until you figure out what is causing this behavior. You can't expect others to go through all this configuration and debug it.
from lazyvim.
Understood. Fair and appropriate. I assumed someone may know. For example the new feature of inlay.hints kicked in automatically and I started seeing hints after the upgrade of neovim to v0.10.0 from v0.9.5 .
I had to now start using the menu option <space>><u><h>
to suppress the hints.
Thanks
from lazyvim.
Yes inlay hints are enabled by default on Neovim 0.10+. To disable them you can create a file ~/.config/nvim/lua/plugins/lsp.lua
with following contents
return {
{
"neovim/nvim-lspconfig",
opts = {
inlay_hints = {
enabled = false,
},
-- document_highlight = {
-- enabled = false,
-- },
},
},
}
The commented section doesn't have to do anything with inlay hints, but maybe you could try uncommenting it to see if you don't observe the behavior you mentioned any more. If you still see the same behavior after uncommenting it, you should try to figure out which Extra causes it by enabling them one by one.
from lazyvim.
I actually tried with your steps, but I'm not able to reproduce this.
Can you do :Noice disable
and see whether the issue is gone after that?
I also see that you use luasnip, but you're using the supertab recipe for Neovim's builtin snippets.
Additionally, the recipe for fzf-native is no longer needed, since that's now included by default in LazyVim (I just removed it from the docs)
from lazyvim.
@dpetka2001 thank you very much. I tried it and seems to work. Gratitude.
@folke thanks tons for the not just this but everything else you have done. I am trying to disable/history/log Noice, but the freeze is not allowing me to even complete typing :Noice disable
. I will keep trying
from lazyvim.
Just try to disable noice
in the plugin spec. So setting in a file
{
"folke/noice.nvim",
enabled = false,
}
And then restart Neovim. noice
shouldn't be installed and enabled any more.
from lazyvim.
Was able to manage get history (if it helps )
1 Info 04:28:21 PM notify.info DAP No configuration selected
2 Error 04:28:31 PM notify.error DAP ...vim/lazy/LazyVim/lua/lazyvim/plugins/extras/dap/core.lua:7: bad argument #1 to 'concat' (table expected, got thread)
3 stack traceback:
4 > [C]: in function 'concat'
5 > ...vim/lazy/LazyVim/lua/lazyvim/plugins/extras/dap/core.lua:7: in function 'option'
6 > /home/me/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:280: in function 'eval_option'
7 > /home/me/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:334: in function </home/me/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:333>
8 > vim/shared.lua: in function 'tbl_map'
9 > /home/me/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:503: in function </home/me/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:497>
10 > [C]: in function 'xpcall'
11 > /home/me/.local/share/nvim/lazy/nvim-dap/lua/dap/async.lua:12: in function </home/me/.local/share/nvim/lazy/nvim-dap/lua/dap/async.lua:11>
12 10:21:07 PM msg_show w .config/nvim/lua/plugins/lsp.lua ".config/nvim/lua/plugins/lsp.lua"-
13 10:21:07 PM msg_show w .config/nvim/lua/plugins/lsp.lua ".config/nvim/lua/plugins/lsp.lua" [New] 14L, 211B
14 Warn 10:21:09 PM notify.warn lazy.nvim # Config Change Detected. Reloading...
15
16 - **added**: `.config/nvim/lua/plugins/lsp.lua`
from lazyvim.
@dpetka2001 @folke now, after setting inlay.hints to false
and stopping/restarting neovim, I think that super-fasting blinking cursor & freeze have not occurred for at least 2-3 minutes.
I will also disable Noice
as you suggested now.
from lazyvim.
Now with Noice disabled can you re-enable inlay hints to see if that's what causes the issue? Although the error you posted hints to some error happening in the nvim-dap
plugin, but I don't see how that causes the cursor blinking and freezing. Maybe it's a separate issue.
from lazyvim.
Ah, I think there is a lot of improvement. I have waited 120 seconds or more after disabling Noice
+ re-enabling inlay.hints
, but the lightening-fast-blinking and freeze has not occurred. I am super grateful & thankful for the world of blessings from you. 🙏
from lazyvim.
I had seen a message earlier on a different issue about the update to LazyVim. And I habitually press l
and s
to sync lazy so I assumed I was on latest.
But the last time I stopped and restarted neovim, I saw a brief message flash that lazy was upgraded to version 5. I guess that was very very significant.
from lazyvim.
So if you re-enable Noice then the issue starts occuring again? Noice was the culprit? LazyVim default installation comes with Noice pre-installed. Do you observe the same behavior with default LazyVim installation?
from lazyvim.
I will re-enable Noice
now by removing that file that disables it. And update asap.
from lazyvim.
Before I could re-enable Noice
, I was alt-tabbing between firefox & terminal, and I the lightening-fast-blinking-cursor started happening again.
Also, I can reproduce the flashing-fast-cursor-blinking almost every-time I switch between firefox & terminal (terminal where neovim has a file opened). But now the blinking cursor makes cursor movement extreme-snail-pace slow but not a complete locked-up-freeze like before.
I will restart neovim and check again (still with Noice
disabled first and after enabling it next)
from lazyvim.
What terminal are you using? Can you try a different one?
from lazyvim.
ok. Its just the default gnome-terminal that ships with Fedora. I will try alacritty.
But now, with ;
- disabled Noice
- inlay.hints NOT disabled
- restart neovim
- gnome-terminal
- switched back & forth between firefox/terminal
- neovim v0.10.0
I also pushed my nvim dir here https://github.com/longwuyuan/nvim-config
from lazyvim.
With above state, there is a brief blinking but no crippling freeze
from lazyvim.
Do you by any chance use tmux?
from lazyvim.
Apologies for dumb question but where can I tail the logs of live neovim background activity (short of doing a strace)
from lazyvim.
oh yes, all this on a tmux window
from lazyvim.
Do you observe the same behavior outside of tmux?
from lazyvim.
if tmux and refresh after switching from firefox is causing this, I will live with it as the freeze is not crippling. But neovim v0.9.5 with tmux with same config (without the new inlay.hints enabled that shipped with nvim0.10), there was never blinking or freeze. So I guess just need to avoid tmux and use a supported terminal emulator !
from lazyvim.
checking behaviour outside tmux now
from lazyvim.
ok, confirmed that blinking is almost nil without tmux. But blinking is rampant after a switch from firefox to tmux neovim. Although, there is negligible freeze experience while blinking is in progress (in tmux). After the blinking stops in 5-8 seconds, its not disrupting use of Neovim.
from lazyvim.
Can you try with kitty terminal and tmux?
from lazyvim.
ok trying with kitty terminal & tmux
from lazyvim.
also, I spoke too soon.
Even though a slight switch back from firefox looked workable, the freezes do occur during a continued use of neovim in terminal tmux. I was typing for roughly 3 minutes and now freezes are frequent enough to disrupt work.
will update status with kitty-terminal+tmux
from lazyvim.
/reopen
from lazyvim.
No blinking or freeze/lockup with ;
- kitty-terminal
- tmux
Noice
disabled- hints enabled
from lazyvim.
When do you exerience the blinking? Is it only during search, or when the cmdline is active?
from lazyvim.
Can you re-enable Noice with kitty+tmux and see if it still occurs or not?
from lazyvim.
-
blinking is guranteed on each switch from firefox to a go file in neovim v0.10.0 in gnome-terminal in a tmux window. But core issue now is lockup accompanied with blinking on alt-tabbling back from firefox first.
-
More critically problem now is this. After the initial focus back from firefox to neovim, the blinking stops after 5-8 seconds and I can resume typing in neovim after 8 seconds or 10 seonds. But after resuming and withing 30 seconds neovim just locks up and freezes and no key/mouse stroke/button works. And it stays lockedup for at least for 10 seconds nad often more. So every 30 seonds, there is a lockup of 10 seconds.
from lazyvim.
ok, re-enabling Noice in kitty and testing.
from lazyvim.
NO blinking or freezing with ;
- kitty terminal-emulator
- tmux
- Neovim 0.10.0 opened a go file
Noice
enabledhints
enabled- Multiple back&forth between firefox & kitty
from lazyvim.
The problem might be yanky and it's synching to the clipboard.
Can you disable yanky and try again?
I've seen similar issues on Gnome. (not using gnome myself though)
from lazyvim.
See also gbprod/yanky.nvim#37
from lazyvim.
Maybe my fix for yanky no longer works
from lazyvim.
ok thanks tons. Removing yanky and testing on gnome-terminal now
from lazyvim.
You were right. Problem almost certainly seems related to yanky.
NO blinking & NO Freeze now with ;
- Yanky removed
- gnome-terminal-emulator
- tmux
- Noice enabled
- Hints enabled
There are no words to express gratitude for all the good software and all the help the world receives from you. More power to you.
from lazyvim.
ok, great. Then it's probably best to submit an issue to yanky and reference the issue I mentioned
from lazyvim.
Either way, I'd still suggest you to use wezterm or kitty. Better terminals than Gnome's terminal.
from lazyvim.
What clipboard tool are you using for Neovim? Can you run :checkhealth vim.provider
and see what it says about Clipboard?
from lazyvim.
Thank you so very much.
- I will try to switch termnal emulator. Was blocked because easy menu for configuring a nerd font in gnome-terminal.
- I will submit a issue at Yanky and reference the issue you mentioned. It all makes sense now
from lazyvim.
wl-copy
I did not change any defaults so it seems to have picked up wl-copy as clipboard
from lazyvim.
The problem is that launching wl-copy from Gnome, creates a new window. That triggers FocusLost in NEovim and right after, FocusGained.
Just submitted a fix for yanky gbprod/yanky.nvim#183
from lazyvim.
The problem is that launching wl-copy from Gnome, creates a new window. That triggers FocusLost in NEovim and right after, FocusGained.
Just submitted a fix for yanky gbprod/yanky.nvim#183
I don't know how to thank you. I use bits authored by you almost all the time I am on a keyboard so much much gratitude and more power to you.
from lazyvim.
Related Issues (20)
- bug: enabling fzf extra via config doesn't work (install telescope specs) HOT 27
- bug: Todo binds still hardcoded to telescope
- bug: rename is invalid in vue file
- bug: vtsls outputing incorrect diagnostics in Neovim 0.10.0
- bug: Failed to run `config` for fzf-lua HOT 7
- bug: codelldb adapter path incorrect after removal of mason-nvim-dap.nvim dependency HOT 4
- bug: Symlink config files not found
- feature: Document how to override autocommands HOT 2
- bug: Hover get exited when scrolling to the end HOT 3
- bug: after latest update, there is error in edgy HOT 19
- feature: Add full-featured setup guides for different languages, such as lint HOT 2
- bug: breaking change in conform.nvim HOT 3
- bug: there are 2 suggested supertab configurations in website HOT 2
- bug: nvim-metals does not load when Scala extras is enabled HOT 21
- bug: nvim-treesitter error on read-only file system HOT 6
- bug: which-key set `il`/`al`/`in`/`an` even if they are disabled or remapped in `mini.ai` HOT 1
- bug: relative number not working HOT 2
- bug: HOT 1
- bug: formatting is not working if lang.go and formatting.prettier are installed on relevant files HOT 3
- bug(haskell): LazyVim.root does not detect lsp root dir HOT 4
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 lazyvim.