2023-06-14 11:30:30 +02:00
|
|
|
{
|
|
|
|
lib,
|
2023-11-06 15:04:08 +01:00
|
|
|
config,
|
2023-06-14 11:30:30 +02:00
|
|
|
...
|
|
|
|
}:
|
2024-05-05 19:39:35 +02:00
|
|
|
let
|
2023-06-14 11:30:30 +02:00
|
|
|
cfg = config.plugins.crates-nvim;
|
2024-05-05 19:39:35 +02:00
|
|
|
in
|
|
|
|
{
|
2024-10-06 10:05:31 -05:00
|
|
|
options.plugins.crates-nvim = lib.nixvim.neovim-plugin.extraOptionsOptions;
|
2023-06-14 11:30:30 +02:00
|
|
|
|
2024-10-06 09:57:31 -05:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-06-14 11:30:30 +02:00
|
|
|
extraConfigLua = ''
|
2024-10-06 10:05:31 -05:00
|
|
|
require('crates').setup(${lib.nixvim.toLuaObject cfg.extraOptions})
|
2023-06-14 11:30:30 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|