Skip to content

matveyt/neoclip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
matveyt
Mar 26, 2025
d035280 · Mar 26, 2025

History

64 Commits
Mar 26, 2025
Mar 26, 2025
Mar 17, 2025
Aug 23, 2024
Jun 26, 2024
Jul 23, 2020
Mar 17, 2025

Repository files navigation

Description

This is Neovim clipboard provider. It allows to access system clipboard without any extra tools, such as win32yank, xclip, xsel, pbcopy, pbpaste and so on.

Read :h provider-clipboard for more information on Neovim clipboard integration.

Installation

From source code

First, fetch the plugin using any plugin manager you like, or simply clone it with git under your packages directory tree, see :h packages.

An example for minpac

  1. Add to your init.vim
    call minpac#init()
    call minpac#add('matveyt/neoclip', #{type: 'opt'})
    "... more plugins to follow

    if has('nvim')
        packadd! neoclip
    endif
  1. Save the file and reload configuration
    :update | source %
  1. Update the plugin from network repository
    :call minpac#update('neoclip')

Next, drop to your shell and compile platform-dependent module from source.

  1. Compiling
    $ cd ~/.config/nvim/pack/minpac/start/neoclip/src

    $ # by CMake
    $ cmake -B build
    $ cmake --build build
    $ cmake --install build --strip

    $ # ..or by Meson
    $ meson setup build
    $ meson install -C build --strip
  1. Run Neovim again and see if it's all right
    :checkhealth neoclip

With Homebrew

There is a formula for Homebrew in homebrew-neoclip repository.

As a Nix Flake

Please, refer to neoclip-flake repository:

  • an example which uses an overlay
  • an example which uses a package directly

Compatibility and other troubles

Neoclip should run on Windows, macOS and all the various *nix'es (with X11 and/or Wayland display server). See :h neoclip-build to get more information on build dependencies. See :h neoclip-issues for a list of known issues.