From 8ad2f8c9afb308e7a8a1133f578e3352442f770a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 24 Sep 2023 01:12:42 +0200 Subject: Restructure plugin configs --- fnl/plugins/editor/persistence.fnl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'fnl/plugins/editor/persistence.fnl') diff --git a/fnl/plugins/editor/persistence.fnl b/fnl/plugins/editor/persistence.fnl index 492ef0d..f1e1ecf 100644 --- a/fnl/plugins/editor/persistence.fnl +++ b/fnl/plugins/editor/persistence.fnl @@ -1,5 +1,13 @@ ;; Session manager. +(local keys [{1 :sn 2 :RestoreSession :desc "Restore session"} + {1 :se + 2 :RestoreLastSession + :desc "Restore last session"} + {1 :si + 2 :IgnoreSession + :desc "Ignore current session"}]) + (local user-cmds [[:RestoreSession (lambda [] (let [persistence (require :persistence)] @@ -20,14 +28,6 @@ (let [cmds (require :util.cmds)] (cmds.create-user-cmds user-cmds))) -{1 :folke/persistence.nvim - :event :VeryLazy - : init - :keys [{1 :sn 2 :RestoreSession :desc "Restore session"} - {1 :se - 2 :RestoreLastSession - :desc "Restore last session"} - {1 :si - 2 :IgnoreSession - :desc "Ignore current session"}] - :opts {:options [:buffers :curdir :tabpages :winsize :help]}} +(local opts {:options [:buffers :curdir :tabpages :winsize :help]}) + +{1 :folke/persistence.nvim :event :VeryLazy : init : keys : opts} -- cgit v1.2.3-70-g09d2