mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
17 lines
309 B
Nix
17 lines
309 B
Nix
{
|
|
lib,
|
|
helpers,
|
|
config,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.plugins.crates-nvim;
|
|
in {
|
|
options.plugins.crates-nvim = helpers.neovim-plugin.extraOptionsOptions;
|
|
|
|
config = mkIf cfg.enable {
|
|
extraConfigLua = ''
|
|
require('crates').setup(${helpers.toLuaObject cfg.extraOptions})
|
|
'';
|
|
};
|
|
}
|