1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00
nixvim/plugins/by-name/chadtree/default.nix
2025-09-25 20:59:27 +00:00

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";
};
};
}