diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index 969dfd45..e654f595 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -57,6 +57,7 @@ - `mini.ai` - `mini.align` - `mini.animate` + - `mini.base16` [kaktu5](https://github.com/kaktu5): diff --git a/flake.lock b/flake.lock index 27777b4b..862e7550 100644 --- a/flake.lock +++ b/flake.lock @@ -984,6 +984,22 @@ "type": "github" } }, + "plugin-mini-base16": { + "flake": false, + "locked": { + "lastModified": 1734960100, + "narHash": "sha256-VGs4k/xDujPcA0Nv5T18ybSv1iqnzg0AFmaweRdhvDM=", + "owner": "echasnovski", + "repo": "mini.base16", + "rev": "23453dacc1606e5d42238d82f0b42a2985386b62", + "type": "github" + }, + "original": { + "owner": "echasnovski", + "repo": "mini.base16", + "type": "github" + } + }, "plugin-minimap-vim": { "flake": false, "locked": { @@ -2183,6 +2199,7 @@ "plugin-mini-ai": "plugin-mini-ai", "plugin-mini-align": "plugin-mini-align", "plugin-mini-animate": "plugin-mini-animate", + "plugin-mini-base16": "plugin-mini-base16", "plugin-minimap-vim": "plugin-minimap-vim", "plugin-modes-nvim": "plugin-modes-nvim", "plugin-neo-tree-nvim": "plugin-neo-tree-nvim", diff --git a/flake.nix b/flake.nix index 36683e91..b5b9629e 100644 --- a/flake.nix +++ b/flake.nix @@ -760,5 +760,10 @@ url = "github:echasnovski/mini.animate"; flake = false; }; + + plugin-mini-base16 = { + url = "github:echasnovski/mini.base16"; + flake = false; + }; }; } diff --git a/modules/plugins/mini/default.nix b/modules/plugins/mini/default.nix index 6a4e3720..ecf80efd 100644 --- a/modules/plugins/mini/default.nix +++ b/modules/plugins/mini/default.nix @@ -3,5 +3,6 @@ ./ai ./align ./animate + # ./base16 # NOTE: configured in theme/ ]; } diff --git a/modules/plugins/theme/supported-themes.nix b/modules/plugins/theme/supported-themes.nix index e185eb0d..87266e71 100644 --- a/modules/plugins/theme/supported-themes.nix +++ b/modules/plugins/theme/supported-themes.nix @@ -12,6 +12,14 @@ in { require('base16-colorscheme').setup(${toLuaObject base16-colors}) ''; }; + mini-base16 = { + setup = {base16-colors, ...}: '' + -- Base16 theme + require('mini.base16').setup({ + palette = ${toLuaObject base16-colors} + }) + ''; + }; onedark = { setup = {style ? "dark", ...}: '' -- OneDark theme