summaryrefslogtreecommitdiff
path: root/fnl/config/which-key.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-07 12:58:00 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-07 12:58:00 +0100
commit11eb82bcea1d29a23c7d6bed28f23a86b98cb2a6 (patch)
treedd6f18c3634399c5f8469a21bdf0deb4dedf2dec /fnl/config/which-key.fnl
parentdedf2e53f661cde3e50852ddfd5f42cdfe97b215 (diff)
Replace session manager to persistence.nvim
Diffstat (limited to 'fnl/config/which-key.fnl')
-rw-r--r--fnl/config/which-key.fnl13
1 files changed, 10 insertions, 3 deletions
diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl
index 3944959..405fb1c 100644
--- a/fnl/config/which-key.fnl
+++ b/fnl/config/which-key.fnl
@@ -112,9 +112,14 @@
:s ["<cmd>Telescope lsp_document_symbols<cr>" "Document Symbols"]})
(def- replace {:name :replace
- :f [:<cmd>ReplaceInBuf<cr> "Replace in Buffer"]
- :r [:<cmd>Replace<cr> :Replace]
- :w [:<cmd>ReplaceWord<cr> "Replace Word"]})
+ :m [:<cmd>ReplaceInBuf<cr> "Replace in Buffer"]
+ :n [:<cmd>Replace<cr> :Replace]
+ :e [:<cmd>ReplaceWord<cr> "Replace Word"]})
+
+(def- session {:name :session
+ :m [:<cmd>RestoreSession<cr> "Restore session"]
+ :n [:<cmd>RestoreLastSession<cr> "Restore last session"]
+ :e [:<cmd>IgnoreSession<cr> "Ignore current session"]})
(def- treesitter
{:name :Treesitter :p [:<cmd>TSPlaygroundToggle<cr> :Playground]})
@@ -129,7 +134,9 @@
:h [:<cmd>ColorizerToggle<cr> :Colorizer]
:l lsp
:m [:<cmd>Mason<cr> :Mason]
+ :n [:<cmd>SymbolsOutline<cr> "Symbols outline"]
:r replace
+ :s session
:t [:<cmd>ToggleTerm<cr> :Terminal]
:u [:<cmd>UndotreeToggle<cr> :Undotree]
:y ["<cmd>Lazy home<cr>" :Home]