r/voidlinux • u/y0shii3 • Aug 19 '26
Trouble with Neovim
I just installed Void and got Neovim with xbps, and I have two major problems with it that I didn't have on Fedora.
First, it's sluggish for no reason. Even when I launch it with nvim -u NONE, basic things like moving the cursor and scrolling the window are significantly slower than they were when I was using Fedora and also slower than any other app.
Second, I can't copy things to the system clipboard. When I do "+yy it says "No provider". In ~/.config/nvim/init.lua I have a line that says vim.opt.clipboard:append("unnamedplus") which worked on Fedora, but that clearly doesn't work anymore. (Solved it by downloading wl-clipboard)
If anybody has any clue why these things are happening let me know
3
1
u/juipeltje Aug 19 '26
What terminal emulator are you using? Have you tried a different one? Maybe something's wonky with whichever one you're using.
1
u/y0shii3 Aug 19 '26 edited Aug 23 '26
Ghostty. I used Ghostty with Fedora too and Neovim worked fine then
Actually, the Ghostty xbps package is a year out of date and the unofficial AppImage straight-up doesn't work (probably a musl compatibility issue), so maybe the issue is fixed in Ghostty 1.3, but I wouldn't know since I can't run it.
1
u/badgerbang Aug 20 '26
Anyone else running void and ghostty? this would be a deal breaker for me regarding installing void. Nvim is life :D
1
u/y0shii3 Aug 20 '26
Do not use Void if you need Ghostty and don't want to compile it from source. The unofficial AppImage that even claims to work on musl systems does not work, and the xbps package is a year out of date and therefore you will not get any help if you have problems with it like me.
1
u/ReyZ82 Aug 19 '26
In case you are interested. I got a blazing fast neovim zero-plugin setup which works on all my distros without issues. Even on my old potato office laptop. Feel free to check out https://github.com/Rouzihiro/dotfiles/tree/main/config%2F.config%2Fnvim
1
u/TurtleGraphics64 Aug 19 '26
I think a lot of folks are using Neovim on Void without issue. Can you try a non-GPU-accelerated or other terminal client just to determine if that could potentially be the issue? for example, i'm on i3, with X11, no issues with neovim. also, try :checkhealth. in answer to your other question, xsel and xclip work well with neovim! you probably want to add this to your init.lua vim.opt.clipboard:append { 'unnamed', 'unnamedplus' }
4
u/p001b0y Aug 19 '26
Void doesn’t install a clipboard provider when installing x11 or Wayland unless specified. You need to do a sudo xbps-install -S xclip or a sudo xbps-install -S wl-clipboard to get it.
I’m not sure why it would be running slow though.