1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-12 13:36:06 +01:00

colorschemes/onedark: migrate to by-name

This commit is contained in:
Heitor Augusto 2025-11-02 19:46:48 -03:00 committed by Gaétan Lepage
parent 56a97addab
commit 56a2c5bcd0
3 changed files with 0 additions and 1 deletions

View file

@ -1,42 +0,0 @@
{
lib,
...
}:
lib.nixvim.plugins.mkNeovimPlugin {
name = "onedark";
isColorscheme = true;
package = "onedark-nvim";
maintainers = [ lib.maintainers.GaetanLepage ];
settingsExample = {
colors = {
bright_orange = "#ff8800";
green = "#00ffaa";
};
highlights = {
"@keyword".fg = "$green";
"@string" = {
fg = "$bright_orange";
bg = "#00ff00";
fmt = "bold";
};
"@function" = {
fg = "#0000ff";
sp = "$cyan";
fmt = "underline,italic";
};
"@function.builtin".fg = "#0059ff";
};
};
callSetup = false;
colorscheme = null;
extraConfig = cfg: {
colorschemes.onedark.luaConfig.content = ''
_onedark = require('onedark')
_onedark.setup(${lib.nixvim.toLuaObject cfg.settings})
_onedark.load()
'';
};
}

View file

@ -2,7 +2,6 @@
imports = [
./cmp
./colorschemes/onedark.nix
./colorschemes/oxocarbon.nix
./colorschemes/palette.nix
./colorschemes/poimandres.nix