From b863639ee7a2348396a6d982c46e2926c9c6f05e Mon Sep 17 00:00:00 2001 From: Nicola Date: Sat, 3 Sep 2022 14:36:12 +0200 Subject: [PATCH] docs: key mappings present in the README (#10) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f14b329..1bdf154 100644 --- a/README.md +++ b/README.md @@ -62,11 +62,11 @@ but you can of course write an autocmd that does exactly that if you want. ```lua -- restore the session for the current directory -vim.api.nvim_set_keymap("n", "qs", [[lua require("persistence").load()]]) +vim.api.nvim_set_keymap("n", "qs", [[lua require("persistence").load()]], {}) -- restore the last session -vim.api.nvim_set_keymap("n", "ql", [[lua require("persistence").load({ last = true })]]) +vim.api.nvim_set_keymap("n", "ql", [[lua require("persistence").load({ last = true })]], {}) -- stop Persistence => session won't be saved on exit -vim.api.nvim_set_keymap("n", "qd", [[lua require("persistence").stop()]]) +vim.api.nvim_set_keymap("n", "qd", [[lua require("persistence").stop()]], {}) ```