mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
19 lines
309 B
Nix
19 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})
|
|
'';
|
|
};
|
|
}
|