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:setin vimscript, e.g.opts.numbers = trueis the same as:set numbers)You can set this global setting
globals.clipboardinstead. I'd also suggest addingxclipby 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 theclipboardoption (not global!) tounnamedplus:programs.nixvim.opts.clipboard = [ "unnamedplus" ];.Hope this helps! Let me know if you need anything else.