diff options
| author | Mike Vink <mike.vink@stater.nl> | 2023-04-24 17:30:08 +0200 |
|---|---|---|
| committer | Mike Vink <mike.vink@stater.nl> | 2023-04-24 17:30:08 +0200 |
| commit | 59f5bbde8749b6d0c343f09db593be6b3a856798 (patch) | |
| tree | 1538639bb18078f9780cc9402b184d08925b88cf /fnl | |
| parent | d89ec79c52c2532789c6f510c12a71e99963a37e (diff) | |
add dispatch last status
Diffstat (limited to 'fnl')
| -rw-r--r-- | fnl/conf/pkgs/heirline.fnl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/fnl/conf/pkgs/heirline.fnl b/fnl/conf/pkgs/heirline.fnl index 8ad8820..5bf26a2 100644 --- a/fnl/conf/pkgs/heirline.fnl +++ b/fnl/conf/pkgs/heirline.fnl @@ -199,6 +199,28 @@ (local TabPages (utils.insert TabPages (utils.make_tablist Tabpage) TabpageClose)) +(local dispatch-get-request (. vim.fn "dispatch#request")) +(local Dispatch + (utils.insert {:init (fn [self] + (set self.req (dispatch-get-request))) + :condition (fn [] + (not (vim.tbl_isempty (dispatch-get-request))))} + {:provider "dispatch(" + :hl (fn [self] + {:fg (if (= 1 self.req.completed) + (theme :syn :fun) + (theme :diag :warning)) + :bold true})} + {:provider (fn [self] + self.req.command) + :hl {:fg (theme :syn :string) :bold false}} + {:provider ")" + :hl (fn [self] + {:fg (if (= 1 self.req.completed) + (theme :syn :fun) + (theme :diag :warning)) + :bold true})})) + (local StatusLine [FileNameBlock Space HarpoonMarks @@ -207,6 +229,7 @@ DAPMessages Space RecordingMacro + Dispatch Align Space Nix |
