diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-02-26 20:38:31 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-02-26 20:38:31 +0100 |
commit | dd02e81da7f59dff89d4fc4ef803a1c19a93d73d (patch) | |
tree | 2e68bef41d3dfbfe54fd8779f3b4d363ae5b57f6 /fnl/plugins | |
parent | 9c1e99cd5eac3c8edab3759cfa0708f4d850d950 (diff) |
Update ui select fun in orgmode
Diffstat (limited to 'fnl/plugins')
-rw-r--r-- | fnl/plugins/orgmode.fnl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fnl/plugins/orgmode.fnl b/fnl/plugins/orgmode.fnl index 288eeb0..0be49c7 100644 --- a/fnl/plugins/orgmode.fnl +++ b/fnl/plugins/orgmode.fnl @@ -50,12 +50,11 @@ (tset options-by-label item.label item))) (vim.ui.select options {:prompt data.prompt} (fn [choice] - ;; FIX: this code block - (when (not choice) - (lua "return ")) - (local option (. options-by-label choice)) - (when option.action - (option.action)))))) + (if choice + (do + (local option (. options-by-label choice)) + (when option.action + (option.action)))))))) (local opts {:org_agenda_files ["~/.local/share/org/**/*"] |