refactor: absorb statusline offset into indicator padding
Remove the hardcoded statusline_offset from calculate_position() and let padding.y serve as the sole offset from the bottom edge. Bump default padding.y to 3 to preserve the original visual position.
This commit is contained in:
@@ -110,7 +110,7 @@ to close it. Press `<Leader>wxt` to toggle it back.
|
||||
| `failure_hl` | `string` | `"WatchexecFailure"` | Highlight for failure state. |
|
||||
| `width` | `integer` | `2` | Indicator width in cells. |
|
||||
| `height` | `integer` | `1` | Indicator height in cells. |
|
||||
| `padding` | `table` | `{ x = 1, y = 1 }` | Offset from editor edges. |
|
||||
| `padding` | `table` | `{ x = 1, y = 3 }` | Offset from editor edges. |
|
||||
| `patterns` | `table` | *(see below)* | Lua patterns for parsing output. |
|
||||
|
||||
#### `indicator.patterns`
|
||||
|
||||
Reference in New Issue
Block a user