summaryrefslogtreecommitdiff
path: root/fnl/plugins/persistence.fnl
diff options
context:
space:
mode:
authoraktersnurra <gustaf@gustafrydholm.xyz>2026-04-17 23:34:22 +0200
committeraktersnurra <gustaf@gustafrydholm.xyz>2026-04-19 23:15:52 +0200
commit0f3690bd084ba3b47b4c356089b03a6df763572c (patch)
tree928d8f0d5ce0520d5acf782c4fdfd452f8f8470f /fnl/plugins/persistence.fnl
parent86adf15a8a338ae1ae71c18b9f11705fe6b36516 (diff)
More based fixes
Diffstat (limited to 'fnl/plugins/persistence.fnl')
-rw-r--r--fnl/plugins/persistence.fnl31
1 files changed, 15 insertions, 16 deletions
diff --git a/fnl/plugins/persistence.fnl b/fnl/plugins/persistence.fnl
index 2e81e78..8c2ff55 100644
--- a/fnl/plugins/persistence.fnl
+++ b/fnl/plugins/persistence.fnl
@@ -11,22 +11,21 @@
:desc "Ignore current session"}])
(λ init []
- (user-cmds
- [:RestoreSession
- (λ []
- (let [persistence (require :persistence)]
- (persistence.load)))
- {:nargs 0}]
- [:RestoreLastSession
- (λ []
- (let [persistence (require :persistence)]
- (persistence.load {:last true})))
- {:nargs 0}]
- [:IgnoreSession
- (λ []
- (let [persistence (require :persistence)]
- (persistence.stop)))
- {:nargs 0}]))
+ (user-cmds [:RestoreSession
+ (λ []
+ (let [persistence (require :persistence)]
+ (persistence.load)))
+ {:nargs 0}]
+ [:RestoreLastSession
+ (λ []
+ (let [persistence (require :persistence)]
+ (persistence.load {:last true})))
+ {:nargs 0}]
+ [:IgnoreSession
+ (λ []
+ (let [persistence (require :persistence)]
+ (persistence.stop)))
+ {:nargs 0}]))
(local opts {:options [:buffers :curdir :tabpages :winsize :help]})