diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-24 01:12:42 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-24 01:12:42 +0200 |
commit | 8ad2f8c9afb308e7a8a1133f578e3352442f770a (patch) | |
tree | a7a05ed7c472f186d6380dd918e2318d6d951330 /fnl/plugins/editor/persistence.fnl | |
parent | fd69ec549594d53b9503212d93a9a44f10eef478 (diff) |
Restructure plugin configs
Diffstat (limited to 'fnl/plugins/editor/persistence.fnl')
-rw-r--r-- | fnl/plugins/editor/persistence.fnl | 22 |
1 files changed, 11 insertions, 11 deletions
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 :<leader>sn 2 :<cmd>RestoreSession<cr> :desc "Restore session"} + {1 :<leader>se + 2 :<cmd>RestoreLastSession<cr> + :desc "Restore last session"} + {1 :<leader>si + 2 :<cmd>IgnoreSession<cr> + :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 :<leader>sn 2 :<cmd>RestoreSession<cr> :desc "Restore session"} - {1 :<leader>se - 2 :<cmd>RestoreLastSession<cr> - :desc "Restore last session"} - {1 :<leader>si - 2 :<cmd>IgnoreSession<cr> - :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} |