From cc359732a6c907d90dcaeb27ccb9c7a6aec94eab Mon Sep 17 00:00:00 2001 From: zyp Date: Mon, 18 Dec 2023 11:33:18 +0800 Subject: feat: update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index e7a407d..9d699dc 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,27 @@ This will install the latest version of osc to `$GOPATH/bin`. To find out where - [ ] [copy] check is stdin is readable - [ ] tmux support +## for neovim + +- set init.lua + +```lua +vim.cmd([[ +let g:clipboard = { + \ 'name': 'osc-copy', + \ 'copy': { + \ '+': 'osc copy', + \ '*': 'osc copy', + \ }, + \ 'paste': { + \ '+': 'osc paste', + \ '*': 'osc paste', + \ }, + \ 'cache_enabled': 0, + \ } +]]) +``` + ## 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