diff --git a/docs/release-notes/rl-0.6.md b/docs/release-notes/rl-0.6.md index 6cfe4a92a..0bde4a5ea 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 e07faf1b6..44d96fad2 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 1321573b5..67b657776 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 2ca2a0d50..f20a91446 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 056255a9e..d504f86fc 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"]; + }; }