Skip to content

Commit faf1fb4

Browse files
HeitorAugustoLNGaetanLepage
authored andcommitted
colorschemes/vscode: migrate to by-name
1 parent e6c39dc commit faf1fb4

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

colorschemes/vscode/default.nix

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
lib,
3+
...
4+
}:
5+
lib.nixvim.plugins.mkNeovimPlugin {
6+
name = "vscode";
7+
isColorscheme = true;
8+
package = "vscode-nvim";
9+
colorscheme = null; # Color scheme is set by `require.("vscode").load()`
10+
callSetup = false;
11+
12+
maintainers = [ lib.maintainers.loicreynier ];
13+
14+
settingsExample = {
15+
transparent = true;
16+
italic_comments = true;
17+
italic_inlayhints = true;
18+
underline_links = true;
19+
terminal_colors = true;
20+
color_overrides = {
21+
vscLineNumber = "#FFFFFF";
22+
};
23+
};
24+
25+
extraConfig = cfg: {
26+
colorschemes.vscode.luaConfig.content = ''
27+
local _vscode = require("vscode")
28+
_vscode.setup(${lib.nixvim.toLuaObject cfg.settings})
29+
_vscode.load()
30+
'';
31+
};
32+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
empty = {
3+
colorschemes.vscode.enable = true;
4+
};
5+
6+
defaults = {
7+
colorschemes.vscode = {
8+
enable = true;
9+
settings = {
10+
transparent = false;
11+
italic_comments = false;
12+
italic_inlayhints = false;
13+
underline_links = false;
14+
color_overrides = false;
15+
group_overrides = { };
16+
disable_nvimtree_bg = true;
17+
terminal_colors = true;
18+
};
19+
};
20+
};
21+
22+
example = {
23+
colorschemes.vscode = {
24+
enable = true;
25+
settings = {
26+
transparent = true;
27+
italic_comments = true;
28+
italic_inhayhints = true;
29+
underline_links = true;
30+
terminal_colors = true;
31+
color_overrides = {
32+
vscLineNumber = "#FFFFFF";
33+
};
34+
};
35+
};
36+
};
37+
}

0 commit comments

Comments
 (0)