mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/crates: rename from crates-nvim to crates, move to by-name, migrate to mkNeovimPlugin
This commit is contained in:
parent
5d6e83d8ab
commit
2b7f17b6de
4 changed files with 250 additions and 24 deletions
31
plugins/by-name/crates/default.nix
Normal file
31
plugins/by-name/crates/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue