Skip to content

Commit

Permalink
Theme: add rose-pine
Browse files Browse the repository at this point in the history
Simply added the rose-pine input and added it as a theme.
  • Loading branch information
elijahimmer committed Feb 13, 2024
1 parent 1bc9ec9 commit 14cbc0b
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/release-notes/rl-0.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@
flake = false;
};

rose-pine = {
url = "github:rose-pine/neovim";
flake = false;
};

# Rust crates
crates-nvim = {
url = "github:Saecki/crates.nvim";
Expand Down
1 change: 1 addition & 0 deletions lib/types/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ with lib; let
"dracula"
"oxocarbon"
"gruvbox"
"rose-pine"
"minimap-vim"
"dashboard-nvim"
"alpha-nvim"
Expand Down
26 changes: 26 additions & 0 deletions modules/theme/supported_themes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
};
}

0 comments on commit 14cbc0b

Please sign in to comment.