1
0
Fork 0

nvim: clipboard

This commit is contained in:
Daniel Kempkens 2024-02-16 13:17:56 +01:00
parent 4debed9404
commit 0217c618a6
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
3 changed files with 8 additions and 4 deletions

View file

@ -11,8 +11,8 @@
;; Other OS
(set vim.g.clipboard
{:name clip-name
:copy {:+ osc52.copy :* osc52.copy}
:paste {:+ osc52.paste :* osc52.paste}}))
:copy {:+ (osc52.copy "+") :* (osc52.copy "*")}
:paste {:+ (osc52.paste "+") :* (osc52.paste "*")}}))
(vim.opt.clipboard:prepend :unnamedplus))
mod)

View file

@ -1,2 +1,4 @@
(let [yanky (require :yanky)]
(yanky.setup {:ring {:storage :memory}}))
(let [yanky (require :yanky)
uname (vim.loop.os_uname)]
(yanky.setup {:ring {:storage :memory}
:system_clipboard {:sync_with_ring (= uname.sysname :Darwin)}}))

View file

@ -18,6 +18,8 @@ in
extraLuaPackages = luaPkgs: with luaPkgs; [ jsregexp lua-toml readline ];
extraPackages = with pkgs; [
stdenv.cc
git
nodejs
tree-sitter