mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-22 03:35:21 +02:00
75 lines
1.3 KiB
Nix
75 lines
1.3 KiB
Nix
|
{
|
||
|
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()
|
||
|
'';
|
||
|
};
|
||
|
}
|