File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 77
77
'' ;
78
78
} ;
79
79
80
+ pipeAdapterOption = mkAdapterType {
81
+ pipe = lib . nixvim . defaultNullOpts . mkStr "$\{ pipe}" "Pipe name." ;
82
+
83
+ executable = {
84
+ command = mkNullOrOption types . str "Command that spawns the adapter." ;
85
+
86
+ args = mkNullOrOption ( types . listOf types . str ) "Command arguments." ;
87
+
88
+ detached = lib . nixvim . defaultNullOpts . mkBool true "Spawn the debug adapter in detached state." ;
89
+
90
+ cwd = mkNullOrOption types . str "Working directory." ;
91
+ } ;
92
+
93
+ options . timeout = lib . nixvim . defaultNullOpts . mkInt 5000 ''
94
+ Max amount of time in ms to wait between spaning the executable and connecting to the pipe.
95
+ This gives the executable time to create the pipe
96
+ '' ;
97
+ } ;
98
+
80
99
mkAdapterOption =
81
100
name : type :
82
101
mkNullOrOption ( with types ; attrsOf ( either str type ) ) ''
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
26
26
adapters = lib . nixvim . mkCompositeOption "Dap adapters." {
27
27
executables = dapHelpers . mkAdapterOption "executable" dapHelpers . executableAdapterOption ;
28
28
servers = dapHelpers . mkAdapterOption "server" dapHelpers . serverAdapterOption ;
29
+ pipes = dapHelpers . mkAdapterOption "pipe" dapHelpers . pipeAdapterOption ;
29
30
} ;
30
31
31
32
configurations =
@@ -70,6 +71,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
70
71
) )
71
72
// ( lib . optionalAttrs ( cfg . adapters . servers != null ) (
72
73
dapHelpers . processAdapters "server" cfg . adapters . servers
74
+ ) )
75
+ // ( lib . optionalAttrs ( cfg . adapters . pipes != null ) (
76
+ dapHelpers . processAdapters "pipe" cfg . adapters . pipes
73
77
) ) ;
74
78
75
79
signs = with cfg . signs ; {
You can’t perform that action at this time.
0 commit comments