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-18 00:50:44 +0200
commitac8edfb0db52efe65e01f73ef44133a86571ba02 (patch)
tree928d8f0d5ce0520d5acf782c4fdfd452f8f8470f /fnl/plugins/persistence.fnl
parent152fd9d787c7433cad95795992e444250cb83216 (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]})