mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +02:00
nvim-lightbulb: init
* plugins: Add nvim-lightbulb plugin, showing if code actions are available * Update nvim-lightbulb.nix Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
This commit is contained in:
parent
238f0c590e
commit
4afb8e7347
3 changed files with 108 additions and 0 deletions
|
@ -66,6 +66,20 @@ rec {
|
|||
description = desc;
|
||||
};
|
||||
|
||||
defaultNullOpts = rec {
|
||||
mkNullable = type: default: desc: mkNullOrOption type (let
|
||||
defaultDesc = "default: `${default}`";
|
||||
in if desc == "" then defaultDesc else ''
|
||||
${desc}
|
||||
|
||||
${defaultDesc}
|
||||
'');
|
||||
|
||||
mkInt = default: mkNullable lib.types.int (toString default);
|
||||
mkBool = default: mkNullable lib.types.bool (toString default);
|
||||
mkStr = default: mkNullable lib.types.str ''"${default}"'';
|
||||
};
|
||||
|
||||
mkPlugin = { config, lib, ... }: {
|
||||
name,
|
||||
description,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue