Setting up system clipboard with * and + registers? #81
-
Curious how you all are enabling system clipboard access. I started by installing
This is basically just what they suggest in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, it looks like what you want to set is You can set this global setting If you want to be able to copy to the system clipboard without specifying the
Hope this helps! Let me know if you need anything else. |
Beta Was this translation helpful? Give feedback.
Hey, it looks like what you want to set is
g:clipboard
, and not the clipboard option (options are set with:set
in vimscript, e.g.opts.numbers = true
is the same as:set numbers
)You can set this global setting
globals.clipboard
instead. I'd also suggest addingxclip
by adding it to Nixvim'sextraPackages
:programs.nixvim.extraPackages = [ pkgs.xorg.xclip ];
.If you want to be able to copy to the system clipboard without specifying the
+
register, just set theclipboard
option (not global!) tounnamedplus
:programs.nixvim.opts.clipboard = [ "unnamedplus" ];
.Hope this helps! Let me know if you need anything else.