mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-30 06:39:56 +02:00
plugins/TEMPLATE: drop helpers and adopt new style
This commit is contained in:
parent
caefb266be
commit
5241c9f83e
1 changed files with 6 additions and 4 deletions
|
@ -1,11 +1,13 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
helpers,
|
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
let
|
||||||
|
inherit (lib.nixvim) defaultNullOpts;
|
||||||
|
in
|
||||||
|
lib.nixvim.neovim-plugin.mkNeovimPlugin config {
|
||||||
name = "my-plugin";
|
name = "my-plugin";
|
||||||
originalName = "my-plugin.nvim"; # TODO replace (or remove entirely if it is the same as `name`)
|
originalName = "my-plugin.nvim"; # TODO replace (or remove entirely if it is the same as `name`)
|
||||||
defaultPackage = pkgs.vimPlugins.my-plugin-nvim; # TODO replace
|
defaultPackage = pkgs.vimPlugins.my-plugin-nvim; # TODO replace
|
||||||
|
@ -14,11 +16,11 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
|
|
||||||
# Optionally, explicitly declare some options. You don't have to.
|
# Optionally, explicitly declare some options. You don't have to.
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
foo = helpers.defaultNullOpts.mkUnsignedInt 97 ''
|
foo = defaultNullOpts.mkUnsignedInt 97 ''
|
||||||
The best birth year.
|
The best birth year.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
great_feature = helpers.defaultNullOpts.mkBool false ''
|
great_feature = defaultNullOpts.mkBool false ''
|
||||||
Whether to enable the great feature.
|
Whether to enable the great feature.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue