Merge pull request #219 from elijahimmer/main

Theme: add `rose-pine`
This commit is contained in:
NotAShelf 2024-02-14 01:15:30 +03:00 committed by GitHub
commit c0841e0106
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 53 additions and 0 deletions

View file

@ -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 - Updated all plugin inputs to their latest versions (26.01.2024) - this brought minor color changess to the Catppuccin
theme theme
[elijahimmer](https://github.com/elijahimmer)
- Added rose-pine theme

View file

@ -1566,6 +1566,7 @@
"project-nvim": "project-nvim", "project-nvim": "project-nvim",
"registers": "registers", "registers": "registers",
"rnix-lsp": "rnix-lsp", "rnix-lsp": "rnix-lsp",
"rose-pine": "rose-pine",
"rust-tools": "rust-tools", "rust-tools": "rust-tools",
"scrollbar-nvim": "scrollbar-nvim", "scrollbar-nvim": "scrollbar-nvim",
"smartcolumn": "smartcolumn", "smartcolumn": "smartcolumn",
@ -1588,6 +1589,22 @@
"zig": "zig" "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": { "rust-overlay": {
"inputs": { "inputs": {
"flake-utils": [ "flake-utils": [

View file

@ -346,6 +346,11 @@
flake = false; flake = false;
}; };
rose-pine = {
url = "github:rose-pine/neovim";
flake = false;
};
# Rust crates # Rust crates
crates-nvim = { crates-nvim = {
url = "github:Saecki/crates.nvim"; url = "github:Saecki/crates.nvim";

View file

@ -44,6 +44,7 @@ with lib; let
"dracula" "dracula"
"oxocarbon" "oxocarbon"
"gruvbox" "gruvbox"
"rose-pine"
"minimap-vim" "minimap-vim"
"dashboard-nvim" "dashboard-nvim"
"alpha-nvim" "alpha-nvim"

View file

@ -128,4 +128,30 @@
''; '';
styles = ["dark" "light"]; 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"];
};
} }