Skip to content

Setting up system clipboard with * and + registers? #81

Closed Answered by pta2002
volkswagenfeature asked this question in Q&A
Discussion options

You must be logged in to vote

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 adding xclip by adding it to Nixvim's extraPackages: programs.nixvim.extraPackages = [ pkgs.xorg.xclip ];.

If you want to be able to copy to the system clipboard without specifying the + register, just set the clipboard option (not global!) to unnamedplus:

programs.nixvim.opts.clipboard = [ "unnamedplus" ];.

Hope this helps! Let me know if you need anything else.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@volkswagenfeature
Comment options

@pta2002
Comment options

Answer selected by volkswagenfeature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants