mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
32 lines
666 B
Nix
32 lines
666 B
Nix
|
{ lib, ... }:
|
||
|
lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
||
|
name = "crates";
|
||
|
packPathName = "crates.nvim";
|
||
|
package = "crates-nvim";
|
||
|
|
||
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||
|
|
||
|
imports =
|
||
|
[ { cmpSourcePlugins.crates = "crates"; } ]
|
||
|
++
|
||
|
# TODO introduced 2024-12-12: remove after 25.05
|
||
|
lib.nixvim.mkSettingsRenamedOptionModules [ "plugins" "crates-nvim" ]
|
||
|
[ "plugins" "crates" ]
|
||
|
[
|
||
|
"enable"
|
||
|
"package"
|
||
|
{
|
||
|
old = "extraOptions";
|
||
|
new = "settings";
|
||
|
}
|
||
|
];
|
||
|
|
||
|
settingsOptions = { };
|
||
|
|
||
|
settingsExample = {
|
||
|
smart_insert = true;
|
||
|
autoload = true;
|
||
|
autoupdate = true;
|
||
|
};
|
||
|
}
|