mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
30 lines
538 B
Nix
30 lines
538 B
Nix
{ pkgs, ... }:
|
|
{
|
|
example-with-str = {
|
|
clipboard = {
|
|
register = "unnamed";
|
|
|
|
providers.xclip.enable = true;
|
|
};
|
|
};
|
|
|
|
example-with-package = {
|
|
clipboard = {
|
|
register = [
|
|
"unnamed"
|
|
"unnamedplus"
|
|
];
|
|
|
|
providers.xsel.enable = true;
|
|
};
|
|
};
|
|
|
|
example-with-raw-lua = {
|
|
clipboard = {
|
|
register.__raw = ''vim.env.SSH_TTY and "" or "unnamedplus"'';
|
|
|
|
# wl-copy is only available on linux
|
|
providers.wl-copy.enable = pkgs.stdenv.hostPlatform.isLinux;
|
|
};
|
|
};
|
|
}
|