mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
colorschemes/bamboo: init
This commit is contained in:
parent
a6eda59091
commit
2d485ca1a2
3 changed files with 90 additions and 0 deletions
74
plugins/colorschemes/bamboo.nix
Normal file
74
plugins/colorschemes/bamboo.nix
Normal file
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.nixvim) toLuaObject;
|
||||
in
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "bamboo";
|
||||
isColorscheme = true;
|
||||
packPathName = "bamboo.nvim";
|
||||
package = "bamboo-nvim";
|
||||
|
||||
maintainers = [ lib.maintainers.alisonjenkins ];
|
||||
|
||||
settingsExample = {
|
||||
style = "vulgaris";
|
||||
toggle_style_key = null;
|
||||
toggle_style_list = [
|
||||
"vulgaris"
|
||||
"multiplex"
|
||||
"light"
|
||||
];
|
||||
transparent = false;
|
||||
dim_inactive = false;
|
||||
term_colors = true;
|
||||
ending_tildes = false;
|
||||
cmp_itemkind_reverse = false;
|
||||
|
||||
code_style = {
|
||||
comments = {
|
||||
italic = true;
|
||||
};
|
||||
conditionals = {
|
||||
italic = true;
|
||||
};
|
||||
keywords = { };
|
||||
functions = { };
|
||||
namespaces = {
|
||||
italic = true;
|
||||
};
|
||||
parameters = {
|
||||
italic = true;
|
||||
};
|
||||
strings = { };
|
||||
variables = { };
|
||||
};
|
||||
|
||||
lualine = {
|
||||
transparent = false;
|
||||
};
|
||||
|
||||
colors = { };
|
||||
highlights = { };
|
||||
|
||||
diagnostics = {
|
||||
darker = false;
|
||||
undercurl = true;
|
||||
background = true;
|
||||
};
|
||||
};
|
||||
|
||||
# The colorscheme option is set by the `setup` function.
|
||||
colorscheme = null;
|
||||
callSetup = false;
|
||||
|
||||
extraConfig = cfg: {
|
||||
colorschemes.bamboo.luaConfig.content = ''
|
||||
local bamboo = require("bamboo")
|
||||
bamboo.setup(${toLuaObject cfg.settings})
|
||||
bamboo.colorscheme()
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
./cmp
|
||||
|
||||
./colorschemes/ayu.nix
|
||||
./colorschemes/bamboo.nix
|
||||
./colorschemes/base16
|
||||
./colorschemes/catppuccin.nix
|
||||
./colorschemes/cyberdream.nix
|
||||
|
|
15
tests/test-sources/plugins/colorschemes/bamboo.nix
Normal file
15
tests/test-sources/plugins/colorschemes/bamboo.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
empty = {
|
||||
colorschemes.bamboo.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
colorschemes.bamboo = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
style = "vulgaris";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue