Giter VIP home page Giter VIP logo

Comments (46)

dpetka2001 avatar dpetka2001 commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

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.

folke avatar folke commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

@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.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

@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.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

I will re-enable Noice now by removing that file that disables it. And update asap.

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

What terminal are you using? Can you try a different one?

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

With above state, there is a brief blinking but no crippling freeze

from lazyvim.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

Do you by any chance use tmux?

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

Apologies for dumb question but where can I tail the logs of live neovim background activity (short of doing a strace)

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

oh yes, all this on a tmux window

from lazyvim.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

Do you observe the same behavior outside of tmux?

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

checking behaviour outside tmux now

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

Can you try with kitty terminal and tmux?

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

ok trying with kitty terminal & tmux

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

/reopen

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

No blinking or freeze/lockup with ;

  • kitty-terminal
  • tmux
  • Noice disabled
  • hints enabled

from lazyvim.

folke avatar folke commented on July 18, 2024

When do you exerience the blinking? Is it only during search, or when the cmdline is active?

from lazyvim.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

Can you re-enable Noice with kitty+tmux and see if it still occurs or not?

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024
  • 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.

longwuyuan avatar longwuyuan commented on July 18, 2024

ok, re-enabling Noice in kitty and testing.

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

NO blinking or freezing with ;

  • kitty terminal-emulator
  • tmux
  • Neovim 0.10.0 opened a go file
  • Noice enabled
  • hints enabled
  • Multiple back&forth between firefox & kitty

from lazyvim.

folke avatar folke commented on July 18, 2024

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.

folke avatar folke commented on July 18, 2024

See also gbprod/yanky.nvim#37

from lazyvim.

folke avatar folke commented on July 18, 2024

Maybe my fix for yanky no longer works

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

ok thanks tons. Removing yanky and testing on gnome-terminal now

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

folke avatar folke commented on July 18, 2024

ok, great. Then it's probably best to submit an issue to yanky and reference the issue I mentioned

from lazyvim.

folke avatar folke commented on July 18, 2024

Either way, I'd still suggest you to use wezterm or kitty. Better terminals than Gnome's terminal.

from lazyvim.

dpetka2001 avatar dpetka2001 commented on July 18, 2024

What clipboard tool are you using for Neovim? Can you run :checkhealth vim.provider and see what it says about Clipboard?

from lazyvim.

longwuyuan avatar longwuyuan commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

wl-copy

I did not change any defaults so it seems to have picked up wl-copy as clipboard
image

from lazyvim.

folke avatar folke commented on July 18, 2024

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.

longwuyuan avatar longwuyuan commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.