docs: key mappings present in the README (#10)
This commit is contained in:
parent
77cf5a6ee1
commit
b863639ee7
@ -62,11 +62,11 @@ but you can of course write an autocmd that does exactly that if you want.
|
|||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- restore the session for the current directory
|
-- restore the session for the current directory
|
||||||
vim.api.nvim_set_keymap("n", "<leader>qs", [[<cmd>lua require("persistence").load()<cr>]])
|
vim.api.nvim_set_keymap("n", "<leader>qs", [[<cmd>lua require("persistence").load()<cr>]], {})
|
||||||
|
|
||||||
-- restore the last session
|
-- restore the last session
|
||||||
vim.api.nvim_set_keymap("n", "<leader>ql", [[<cmd>lua require("persistence").load({ last = true })<cr>]])
|
vim.api.nvim_set_keymap("n", "<leader>ql", [[<cmd>lua require("persistence").load({ last = true })<cr>]], {})
|
||||||
|
|
||||||
-- stop Persistence => session won't be saved on exit
|
-- stop Persistence => session won't be saved on exit
|
||||||
vim.api.nvim_set_keymap("n", "<leader>qd", [[<cmd>lua require("persistence").stop()<cr>]])
|
vim.api.nvim_set_keymap("n", "<leader>qd", [[<cmd>lua require("persistence").stop()<cr>]], {})
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user