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:
traxys 2023-01-22 04:36:24 +01:00 committed by GitHub
parent 238f0c590e
commit 4afb8e7347
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 108 additions and 0 deletions

View file

@ -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,