Giter Site home page Giter Site logo

Hangs Neovim about yanky.nvim HOT 14 CLOSED

gbprod avatar gbprod commented on June 8, 2024 2
Hangs Neovim

from yanky.nvim.

Comments (14)

bezmi avatar bezmi commented on June 8, 2024 2

Using xsel as you've described on gnome 42 (wayland) fixes these clipboard issues for me.

from yanky.nvim.

anuvyklack avatar anuvyklack commented on June 8, 2024 1

No, debug-freeze branch doesn't help.

from yanky.nvim.

folke avatar folke commented on June 8, 2024 1

Should be fixed in my PR. Would be great if anyone else could confirm.

from yanky.nvim.

anuvyklack avatar anuvyklack commented on June 8, 2024

It seems, the problem is in Wayland: if I add in my config

  system_clipboard = {
    sync_with_ring = false,
  },

This behavior does not appear.

from yanky.nvim.

gbprod avatar gbprod commented on June 8, 2024

Hello @anuvyklack !
Thanks for reporting this issue.
Looks like the same issue than #20 and #21.

Seems to be caused by a xclip random bug :/

In this case, you can try

  1. Update xclip to the last version

  2. Use xsel instead of xclip with this code:

vim.g.clipboard = {
  name = "xsel_override",
  copy = {
    ["+"] = "xsel --input --clipboard",
    ["*"] = "xsel --input --primary",
  },
  paste = {
    ["+"] = "xsel --output --clipboard",
    ["*"] = "xsel --output --primary",
  },
  cache_enabled = 1,
}
  1. You can also try to use the debug-freeze branch instead of main and let me know if if fix the problem 😅

from yanky.nvim.

gbprod avatar gbprod commented on June 8, 2024

I've you tried xsel ?
What's your version of xclip ?

from yanky.nvim.

anuvyklack avatar anuvyklack commented on June 8, 2024

I am using Fedora, so I have the latest xclip 0.13.
wl-clipbord does not work, the same behavior as for xlip.

from yanky.nvim.

anuvyklack avatar anuvyklack commented on June 8, 2024

xsel is work.
But when I copy something outside the Nvim and paste with p, I can't choose it direct with <C-p> --- get Reached first item message. But if I paste with p, and then press <C-n><C-p> I get the clipboard content.

from yanky.nvim.

anuvyklack avatar anuvyklack commented on June 8, 2024

Highlight doesn't work. Can open a separate issue. And default history length is 100, but in README written that 10.

from yanky.nvim.

gbprod avatar gbprod commented on June 8, 2024

Highlight doesn't work. Can open a separate issue.

Yes please !

xsel is work. But when I copy something outside the Nvim and paste with p, I can't choose it direct with <C-p> --- get Reached first item message. But if I paste with p, and then press <C-n><C-p> I get the clipboard content.

Can you provide a minimal config ?
What's you &clipboard config ?
Seems normal if your clipboard is not set to unnamed[plus] you should paste with p and next press <c-p> to get system clipboard content.
What's your expected behavior ?

from yanky.nvim.

ray-x avatar ray-x commented on June 8, 2024

I see the same issue on archlinux.
one workaround is to use <C-c> to back to normal mode.

from yanky.nvim.

gbprod avatar gbprod commented on June 8, 2024

@anuvyklack

xsel is work. But when I copy something outside the Nvim and paste with p, I can't choose it direct with <C-p> --- get Reached first item message. But if I paste with p, and then press <C-n><C-p> I get the clipboard content.

I think #43 will fix this issue.

Highlight doesn't work.

I think #40 fix this issue, can you confirm ?

@ray-x

I see the same issue on archlinux. one workaround is to use <C-c> to back to normal mode.

I've you tried using xsel ?

from yanky.nvim.

ray-x avatar ray-x commented on June 8, 2024

I did not config xsel in my setup.

from yanky.nvim.

lalitmeeq avatar lalitmeeq commented on June 8, 2024

I am using nightly neovim and I am also facing this issue. I was not sure what was causing the issue. Then tried pressing <C-c> while the neovim is hanged and it came out of the process. Then I checked Lazy profile and it showed the issue that yanky.nvim is taking a lot of time for doing something behind the scenes.

│  Startuptime: 218.34ms
│
│  Based on the actual CPU time of the Neovim process till UIEnter.
│
│  This is more accurate than `nvim --startuptime`. 
│
│    LazyStart 7.42ms
│
│    LazyDone  167.74ms (+160.32ms)
│
│    UIEnter   218.34ms (+50.6ms)
│
│  Profile
│
│  You can press <C-s> to change sorting between chronological order & time taken. 
│
│  Press <C-f> to filter profiling entries that took more time than a given threshold
│
│    ● îȘ† VeryLazy 3020.18ms
│
│      ➜   yanky.nvim 2954.66ms  
│
│        ★   yanky.nvim/plugin/init.lua 3.73ms
│

from yanky.nvim.

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.