mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-01 00:24:59 +02:00
plugins/dap: remove with lib
This commit is contained in:
parent
fe2789e407
commit
e48dda4fe4
6 changed files with 36 additions and 24 deletions
|
@ -5,15 +5,16 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
inherit (lib) mkOption types;
|
||||
|
||||
cfg = config.plugins.dap.extensions.dap-ui;
|
||||
|
||||
mkSizeOption = helpers.mkNullOrOption (with types; either int (numbers.between 0.0 1.0));
|
||||
|
||||
mkKeymapOptions =
|
||||
name:
|
||||
mapAttrs (
|
||||
lib.mapAttrs (
|
||||
key: default:
|
||||
helpers.defaultNullOpts.mkNullable (
|
||||
with types; either str (listOf str)
|
||||
|
@ -57,7 +58,7 @@ let
|
|||
in
|
||||
{
|
||||
options.plugins.dap.extensions.dap-ui = lib.nixvim.plugins.neovim.extraOptionsOptions // {
|
||||
enable = mkEnableOption "dap-ui";
|
||||
enable = lib.mkEnableOption "dap-ui";
|
||||
|
||||
package = lib.mkPackageOption pkgs "dap-ui" {
|
||||
default = [
|
||||
|
@ -232,7 +233,7 @@ in
|
|||
}
|
||||
// cfg.extraOptions;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
lib.mkIf cfg.enable {
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
plugins.dap = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue