From c6051305e5ab01474f4c4cc9f90721e08fd2be83 Mon Sep 17 00:00:00 2001 From: Aidan Welch Date: Tue, 17 Jun 2025 16:30:55 +0200 Subject: [PATCH] colorschemes/moonfly: init --- plugins/colorschemes/moonfly.nix | 25 +++++++++++++++++++ plugins/default.nix | 1 + .../plugins/colorschemes/moonfly.nix | 22 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 plugins/colorschemes/moonfly.nix create mode 100644 tests/test-sources/plugins/colorschemes/moonfly.nix diff --git a/plugins/colorschemes/moonfly.nix b/plugins/colorschemes/moonfly.nix new file mode 100644 index 00000000..cd0d388d --- /dev/null +++ b/plugins/colorschemes/moonfly.nix @@ -0,0 +1,25 @@ +{ + lib, + ... +}: +lib.nixvim.plugins.mkVimPlugin { + name = "moonfly"; + colorscheme = "moonfly"; + packPathName = "vim-moonfly-colors"; + package = "vim-moonfly-colors"; + isColorscheme = true; + + maintainers = [ lib.maintainers.AidanWelch ]; + + globalPrefix = "moonfly"; + settingsExample = { + Italics = true; + NormalFloat = false; + TerminalColors = true; + Transparent = false; + Undercurls = true; + UnderlineMatchParen = false; + VirtualTextColor = false; + WinSeparator = 1; + }; +} diff --git a/plugins/default.nix b/plugins/default.nix index 49510140..8e26df39 100644 --- a/plugins/default.nix +++ b/plugins/default.nix @@ -17,6 +17,7 @@ ./colorschemes/melange.nix ./colorschemes/modus.nix ./colorschemes/monokai-pro.nix + ./colorschemes/moonfly.nix ./colorschemes/nightfox.nix ./colorschemes/nord.nix ./colorschemes/one.nix diff --git a/tests/test-sources/plugins/colorschemes/moonfly.nix b/tests/test-sources/plugins/colorschemes/moonfly.nix new file mode 100644 index 00000000..816142b7 --- /dev/null +++ b/tests/test-sources/plugins/colorschemes/moonfly.nix @@ -0,0 +1,22 @@ +{ + empty = { + colorschemes.moonfly.enable = true; + }; + + defaults = { + colorschemes.moonfly = { + enable = true; + + settings = { + Italics = false; + NormalFloat = true; + TerminalColors = true; + Transparent = true; + Undercurls = true; + UnderlineMatchParen = true; + VirtualTextColor = true; + WinSeparator = 1; + }; + }; + }; +}