mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 11:36:07 +01:00
29 lines
742 B
Nix
29 lines
742 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "chadtree";
|
|
|
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
|
|
|
# TODO introduced 2025-09-24: remove after 26.05
|
|
deprecateExtraOptions = true;
|
|
optionsRenamedToSettings = import ./renamed-options.nix;
|
|
|
|
callSetup = false;
|
|
settingsDescription = "Options provided as `vim.api.nvim_set_var('chadtree_settings', settings)`.";
|
|
extraConfig = cfg: {
|
|
plugins.chadtree.luaConfig.content = ''
|
|
vim.api.nvim_set_var("chadtree_settings", ${lib.nixvim.toLuaObject cfg.settings})
|
|
'';
|
|
};
|
|
|
|
settingsExample = {
|
|
view.window_options.relativenumber = true;
|
|
theme = {
|
|
icon_glyph_set = "devicons";
|
|
text_colour_set = "nerdtree_syntax_dark";
|
|
};
|
|
};
|
|
}
|