diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | flake.lock | 27 | ||||
-rw-r--r-- | flake.nix | 48 | ||||
-rw-r--r-- | readme.md | 4 | ||||
-rw-r--r-- | screenshots/plain-dark.png | bin | 241529 -> 0 bytes | |||
-rw-r--r-- | screenshots/plain-light.png | bin | 244260 -> 0 bytes |
6 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1 @@ | |||
result | |||
diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..af3204b --- /dev/null +++ b/flake.lock | |||
@@ -0,0 +1,27 @@ | |||
1 | { | ||
2 | "nodes": { | ||
3 | "nixpkgs": { | ||
4 | "locked": { | ||
5 | "lastModified": 1632176121, | ||
6 | "narHash": "sha256-N2oSOhbW38rbc53R1R8qXC/Xstht1PIsAcTzJfmCpTc=", | ||
7 | "owner": "NixOS", | ||
8 | "repo": "nixpkgs", | ||
9 | "rev": "3397f0ede9ea2ded1f8b6fa689dda71a7a67b806", | ||
10 | "type": "github" | ||
11 | }, | ||
12 | "original": { | ||
13 | "owner": "NixOS", | ||
14 | "ref": "nixos-21.05", | ||
15 | "repo": "nixpkgs", | ||
16 | "type": "github" | ||
17 | } | ||
18 | }, | ||
19 | "root": { | ||
20 | "inputs": { | ||
21 | "nixpkgs": "nixpkgs" | ||
22 | } | ||
23 | } | ||
24 | }, | ||
25 | "root": "root", | ||
26 | "version": 7 | ||
27 | } | ||
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..bc16b7e --- /dev/null +++ b/flake.nix | |||
@@ -0,0 +1,48 @@ | |||
1 | { | ||
2 | |||
3 | description = "Duotonic colorscheme for {neo,}vim"; | ||
4 | |||
5 | inputs = { | ||
6 | nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05"; | ||
7 | }; | ||
8 | |||
9 | outputs = | ||
10 | { self | ||
11 | , nixpkgs | ||
12 | , ... | ||
13 | } @ rest: | ||
14 | let | ||
15 | supportedSystems = [ "x86_64-linux" "x86_64-darwin" ]; | ||
16 | |||
17 | forAllSystems = nixpkgs.lib.genAttrs supportedSystems; | ||
18 | |||
19 | nixpkgsFor = forAllSystems (system: | ||
20 | import nixpkgs { | ||
21 | inherit system; | ||
22 | overlays = [ self.overlay ]; | ||
23 | } | ||
24 | ); | ||
25 | in | ||
26 | { | ||
27 | |||
28 | overlay = final: prev: rec { | ||
29 | vim-colors-plain = | ||
30 | with final; pkgs.vimUtils.buildVimPlugin { | ||
31 | pname = "vim-colors-plain"; | ||
32 | version = "0.1.0"; | ||
33 | src = ./.; | ||
34 | }; | ||
35 | }; | ||
36 | |||
37 | packages = forAllSystems (system: | ||
38 | { | ||
39 | inherit (nixpkgsFor."${system}") vim-colors-plain; | ||
40 | } | ||
41 | ); | ||
42 | |||
43 | defaultPackage = | ||
44 | forAllSystems (system: self.packages."${system}".vim-colors-plain); | ||
45 | |||
46 | }; | ||
47 | |||
48 | } | ||
@@ -11,3 +11,7 @@ the following directories: | |||
11 | 11 | ||
12 | - vim: `.vim/plugin` | 12 | - vim: `.vim/plugin` |
13 | - neovim: `.config/nvim/plugin` | 13 | - neovim: `.config/nvim/plugin` |
14 | |||
15 | if you use nix/nixos, this repository provides a vim plugin | ||
16 | as a flake output, that you can import via | ||
17 | `builtins.getFlake`. | ||
diff --git a/screenshots/plain-dark.png b/screenshots/plain-dark.png deleted file mode 100644 index 4ed6ab6..0000000 --- a/screenshots/plain-dark.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/screenshots/plain-light.png b/screenshots/plain-light.png deleted file mode 100644 index 4bc0c8f..0000000 --- a/screenshots/plain-light.png +++ /dev/null | |||
Binary files differ | |||