Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: load SessionLens manually via user command #745

Merged
merged 3 commits into from
May 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lua/modules/configs/editor/auto-session.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,16 @@ return function()
auto_save_enabled = true,
auto_restore_enabled = true,
auto_session_suppress_dirs = nil,
session_lens = {
-- If load_on_setup is set to false, one needs to eventually call `require("auto-session").setup_session_lens()` if they want to use session-lens.
ayamir marked this conversation as resolved.
Show resolved Hide resolved
load_on_setup = false,
theme_conf = { border = true },
previewer = false,
},
})

vim.api.nvim_create_user_command("SessionLenShow", function()
ayamir marked this conversation as resolved.
Show resolved Hide resolved
require("auto-session").setup_session_lens()
require("auto-session.session-lens").search_session()
end, { nargs = 0 })
end