From f749fe3757c87c667d8dc6b0040e17aea53612d5 Mon Sep 17 00:00:00 2001 From: theimpostor Date: Wed, 21 Aug 2024 08:26:21 -0500 Subject: Update README.md Notes on Neovim --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 634b50c..66815a6 100644 --- a/README.md +++ b/README.md @@ -85,9 +85,9 @@ go install -v github.com/theimpostor/osc@latest This will install the latest version of osc to `$GOPATH/bin`. To find out where `$GOPATH` is, run `go env GOPATH` -## For neovim +## Neovim clipboard Provider -- set init.lua +osc can be used as the clipboard provider for Neovim: ```lua vim.cmd([[ @@ -106,6 +106,8 @@ let g:clipboard = { ]]) ``` +N.B. Neovim 0.10 introduced native support for OSC52, so this may not be needed. See the [Neovim documentation](https://neovim.io/doc/user/provider.html#clipboard-osc52). + ## Credits - [ojroques/vim-ocsyank](https://github.com/ojroques/vim-oscyank) - inspiration and introduction to OSC52 - [rumpelsepp/oscclip](https://github.com/rumpelsepp/oscclip) - working python implementation -- cgit v1.2.3