matveyt / neoclip Goto Github PK
View Code? Open in Web Editor NEWNeovim multi-platform clipboard provider.
License: The Unlicense
Neovim multi-platform clipboard provider.
License: The Unlicense
Hi,
On Fedora 36, I needed to install these packages to compile neoclip:
$ sudo dnf install libX11-devel luajit luajit-devel ninja-build cmake g++
And after I have:
$ cmake -B build -G Ninja && ninja -C build install/strip
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/stephane/.local/share/nvim/site/pack/packer/start/neoclip/src/build
ninja: Entering directory `build'
[4/5] Installing the project stripped...
-- Install configuration: "release"
-- Installing: /home/stephane/.local/share/nvim/site/pack/packer/start/neoclip/src/../lua/neoclip_x11.so
Suggestion: what do you think to add package dependency list in README?
I can select text, right click and use the neovim mouse menu to copy it (yes, in neovim, not part of the terminal emulator).
BUT for some reason using Y does not copy the code to the clipboard.
I have to add set clipboard=unnamedplus to my config to get the text into the clipboard. Is this expected? I found your plugin through a stackoverflow answer which suggested that should not be added to the config with this plugin.
Since you clearly have much more experience on this than me, do you know what could be causing this?
side note: I don't know if it was worth a full PR to add these.
Requirements for fedora 36
sudo dnf install luajit-devel libX11-devel wayland-devel extra-cmake-modules
Vim-Plug install with trigger to compile after cloning (so you don't have to manually do anything else, as long as you have the installed the requirements before)
Plug 'matveyt/neoclip', { 'do': 'cmake -S src -B build -G Ninja && ninja -C build install/strip' }
I have some issues with nvim 0.7.0
and neoclip
:
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
nvim: xcb_io.c :269 : poll_for_event: l'assertion « !xcb_xlib_threads_sequence_lost » a échoué.
277661 IOT instruction (core dumped) nvim .
I am on Fedora 36.
@matveyt Do you need more information?
Hi, I'm running PopOS with wayland enabled.
➜ plugin git:(master) ✗ lsb_release -a
No LSB modules are available.
Distributor ID: Pop
Description: Pop!_OS 22.04 LTS
Release: 22.04
Codename: jammy
I installed neoclip following the instruction from :h neoclip-build
but when running checkhealth
I see that neoclip/x11 is shown and getting access to the system clipboard does not work...
──────────────────
provider: health#provider#check
Clipboard (optional)
- OK Clipboard tool found: neoclip/X11
My expectation is that I should see something like `neoclip/wayland'.
I saw that the help mentions that wayland should support wlr-data-control
but I don't know how to check if my setup has support of not. But shouldn't checkhealth
display some error id there is no support instead of falling back to neoclip/x11
?
Do you have any idea on how I can make it work?
My nvim version is:
nvim --version
NVIM v0.9.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wno-unused-result -Wimplicit-fallthrough -Wvla -fno-common -fdiagnostics-color=auto -fstack-protector-strong -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DMIN_LOG_LEVEL=3 -DNVIM_UNIBI_HAS_VAR_FROM -I/usr/include/luajit-2.1 -I/usr/include -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/.deps/usr/include -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/.deps/usr/include -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/.deps/usr/include -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/.deps/usr/include -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/build/src/nvim/auto -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/build/include -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/build/cmake.config -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/src -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/.deps/usr/include -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/.deps/usr/include -I/build/neovim-FQlxiH/neovim-0.9.0~ubuntu1+git202302191603-bfe6b4944-333b5866f/.deps/usr/include
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
My neovim config is here; https://github.com/mskyaxl/dotfiles/blob/090001086d8548df65f2c2ffe8224cffdcc5488c/neovim/init.lua#L34
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.