From 14cbc0bcb79c87b7958f7d182046e2557da8a016 Mon Sep 17 00:00:00 2001 From: "Elijah M. Immer" Date: Tue, 13 Feb 2024 12:41:13 -0800 Subject: [PATCH] Theme: add `rose-pine` Simply added the rose-pine input and added it as a theme. --- docs/release-notes/rl-0.6.md | 4 ++++ flake.lock | 17 +++++++++++++++++ flake.nix | 5 +++++ lib/types/plugins.nix | 1 + modules/theme/supported_themes.nix | 26 ++++++++++++++++++++++++++ 5 files changed, 53 insertions(+) diff --git a/docs/release-notes/rl-0.6.md b/docs/release-notes/rl-0.6.md index 6cfe4a9..0bde4a5 100644 --- a/docs/release-notes/rl-0.6.md +++ b/docs/release-notes/rl-0.6.md @@ -42,3 +42,7 @@ Release notes for release 0.6 - Updated all plugin inputs to their latest versions (26.01.2024) - this brought minor color changess to the Catppuccin theme + +[elijahimmer](https://github.com/elijahimmer) + +- Added rose-pine theme diff --git a/flake.lock b/flake.lock index e07faf1..44d96fa 100644 --- a/flake.lock +++ b/flake.lock @@ -1566,6 +1566,7 @@ "project-nvim": "project-nvim", "registers": "registers", "rnix-lsp": "rnix-lsp", + "rose-pine": "rose-pine", "rust-tools": "rust-tools", "scrollbar-nvim": "scrollbar-nvim", "smartcolumn": "smartcolumn", @@ -1588,6 +1589,22 @@ "zig": "zig" } }, + "rose-pine": { + "flake": false, + "locked": { + "lastModified": 1707703907, + "narHash": "sha256-jmDGDlCurGAG85SglAwmQr943kVr8KUr11zpPejQliQ=", + "owner": "rose-pine", + "repo": "neovim", + "rev": "f01ce3a71748a92997d266cfe2c985decd18c601", + "type": "github" + }, + "original": { + "owner": "rose-pine", + "repo": "neovim", + "type": "github" + } + }, "rust-overlay": { "inputs": { "flake-utils": [ diff --git a/flake.nix b/flake.nix index 1321573..67b6577 100644 --- a/flake.nix +++ b/flake.nix @@ -346,6 +346,11 @@ flake = false; }; + rose-pine = { + url = "github:rose-pine/neovim"; + flake = false; + }; + # Rust crates crates-nvim = { url = "github:Saecki/crates.nvim"; diff --git a/lib/types/plugins.nix b/lib/types/plugins.nix index 2ca2a0d..f20a914 100644 --- a/lib/types/plugins.nix +++ b/lib/types/plugins.nix @@ -44,6 +44,7 @@ with lib; let "dracula" "oxocarbon" "gruvbox" + "rose-pine" "minimap-vim" "dashboard-nvim" "alpha-nvim" diff --git a/modules/theme/supported_themes.nix b/modules/theme/supported_themes.nix index 056255a..d504f86 100644 --- a/modules/theme/supported_themes.nix +++ b/modules/theme/supported_themes.nix @@ -128,4 +128,30 @@ ''; styles = ["dark" "light"]; }; + rose-pine = { + setup = { + style ? "main", + transparent ? false, + }: '' + require("rose-pine").setup({ + dark_variant = "${style}", -- main, moon, or dawn + dim_inactive_windows = false, + extend_background_behind_borders = true, + + enable = { + terminal = true, + migrations = true, + }, + + styles = { + bold = false, + italic = false, -- I would like to add more options for this + transparency = ${lib.boolToString transparent}, + }, + }) + + vim.cmd("colorscheme rose-pine") + ''; + styles = ["main" "moon" "dawn"]; + }; }