You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/third_party.md
+32-37Lines changed: 32 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -30,22 +30,24 @@ Or with options:
30
30
```lua
31
31
require("lualine").setup({
32
32
sections= {
33
-
lualine_x= { {
34
-
"overseer",
35
-
label='', -- Prefix for task counts
36
-
colored=true, -- Color the task icons and counts
37
-
symbols= {
38
-
[overseer.STATUS.FAILURE] ="F:",
39
-
[overseer.STATUS.CANCELED] ="C:",
40
-
[overseer.STATUS.SUCCESS] ="S:",
41
-
[overseer.STATUS.RUNNING] ="R:",
33
+
lualine_x= {
34
+
{
35
+
"overseer",
36
+
label="", -- Prefix for task counts
37
+
colored=true, -- Color the task icons and counts
38
+
symbols= {
39
+
[overseer.STATUS.FAILURE] ="F:",
40
+
[overseer.STATUS.CANCELED] ="C:",
41
+
[overseer.STATUS.SUCCESS] ="S:",
42
+
[overseer.STATUS.RUNNING] ="R:",
43
+
},
44
+
unique=false, -- Unique-ify non-running task count by name
45
+
name=nil, -- List of task names to search for
46
+
name_not=false, -- When true, invert the name search
47
+
status=nil, -- List of task statuses to display
48
+
status_not=false, -- When true, invert the status search
42
49
},
43
-
unique=false, -- Unique-ify non-running task count by name
44
-
name=nil, -- List of task names to search for
45
-
name_not=false, -- When true, invert the name search
46
-
status=nil, -- List of task statuses to display
47
-
status_not=false, -- When true, invert the status search
48
-
} },
50
+
},
49
51
},
50
52
})
51
53
```
@@ -109,7 +111,7 @@ local Overseer = {
109
111
To run all neotest processes using overseer, add it as a custom consumer:
110
112
111
113
```lua
112
-
require('neotest').setup({
114
+
require("neotest").setup({
113
115
consumers= {
114
116
overseer=require("neotest.consumers.overseer"),
115
117
},
@@ -119,7 +121,7 @@ require('neotest').setup({
119
121
This will automatically hook `neotest.run` and force it to use overseer to run tests wherever possible. If you would instead like to only use the overseer consumer explicitly, you can disable the monkey patching:
120
122
121
123
```lua
122
-
require('neotest').setup({
124
+
require("neotest").setup({
123
125
consumers= {
124
126
overseer=require("neotest.consumers.overseer"),
125
127
},
@@ -137,15 +139,15 @@ neotest.overseer.run({})
137
139
You can customize the default components of neotest tasks by setting the `default_neotest` component alias (when unset it maps to `default`).
138
140
139
141
```lua
140
-
require('overseer').setup({
142
+
require("overseer").setup({
141
143
component_aliases= {
142
144
default_neotest= {
143
145
"on_output_summarize",
144
146
"on_exit_set_status",
145
147
"on_complete_notify",
146
148
"on_complete_dispose",
147
149
},
148
-
}
150
+
},
149
151
})
150
152
```
151
153
@@ -170,43 +172,36 @@ require("neotest").setup({
170
172
171
173
## DAP
172
174
173
-
If you have both overseer and [nvim-dap](https://github.com/mfussenegger/nvim-dap) installed, overseer will automatically run the `preLaunchTask` and `postDebugTask` when present in a debug configuration.
174
-
175
-
I also recommend that you configure nvim-dap to use overseer's json decoder, since it supports JSON5 (comments and trailing commas)
If you have both overseer and [nvim-dap](https://github.com/mfussenegger/nvim-dap) installed, overseer will automatically run the `preLaunchTask` and `postDebugTask` when present in a debug configuration. No special configuration or action is needed.
180
176
181
-
A note about lazy loading: make sure you load nvim-dap before overseer because overseer will attempt
182
-
to patch nvim-dap inside `overseer.setup()`. Alternatively, you can disable the automatic support
177
+
For lazy-loading, you may wish to avoid loading `nvim-dap` when overseer is loaded. If so, you can disable DAP support initially:
183
178
184
179
```lua
185
180
require("overseer").setup({
186
181
dap=false,
187
182
})
188
183
```
189
184
190
-
And enable the integration manually later, such as when nvim-dap is loaded
185
+
And enable the integration manually later, such as when `nvim-dap` is loaded:
191
186
192
187
```lua
193
-
require("overseer").patch_dap(true)
188
+
require("overseer").enable_dap()
194
189
```
195
190
196
191
## ToggleTerm
197
192
198
193
If you use [toggleterm](https://github.com/akinsho/toggleterm.nvim), you can use the built-in "toggleterm" strategy to allow your tasks to be in a terminal buffer owned by toggleterm. You can use your existing toggleterm keybinds to pull up long-running tasks started with overseer. You can set it up with defaults using:
199
194
200
195
```lua
201
-
require('overseer').setup({
196
+
require("overseer").setup({
202
197
strategy="toggleterm",
203
198
})
204
199
```
205
200
206
201
You can also configure the behavior a bit more:
207
202
208
203
```lua
209
-
require('overseer').setup({
204
+
require("overseer").setup({
210
205
strategy= {
211
206
"toggleterm",
212
207
-- load your default shell before starting the task
@@ -233,7 +228,7 @@ require('overseer').setup({
233
228
-- command to run when the terminal is created. Combine with `use_shell`
234
229
-- to run a terminal command before starting the task
235
230
on_create=nil,
236
-
}
231
+
},
237
232
})
238
233
```
239
234
@@ -246,12 +241,12 @@ More documentation on this strategy can be found [here](strategies.md#toggleterm
246
241
Overseer has built-in support for [resession.nvim](https://github.com/stevearc/resession.nvim).
0 commit comments