Skip to content

Commit

Permalink
docs: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronr committed Jul 17, 2024
1 parent 40b11be commit 9de39de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,14 @@ There's also Telescope support, see the [Session Lens](#-session-lens) section b

Command hooks exist in the format: {hook_name}

- {pre*save}: executes \_before* a session is saved
- {save*extra}: executes \_after* a session is saved, return string will save to `*x.vim`, reference `:help mks`
- {post*save}: executes \_after* a session is saved
- {pre*restore}: executes \_before* a session is restored
- {post*restore}: executes \_after* a session is restored
- {pre*delete}: executes \_before* a session is deleted
- {post*delete}: executes \_after* a session is deleted
- {no*restore}: executes \_at* `VimEnter` _when_ no session is restored
- `{pre_save}`: executes _before_ a session is saved
- `{save_extra}`: executes _after_ a session is saved, return string will save to `*x.vim`, reference `:help mks`
- `{post_save}`: executes _after_ a session is saved
- `{pre_restore}`: executes _before_ a session is restored
- `{post_restore}`: executes _after_ a session is restored
- `{pre_delete}`: executes _before_ a session is deleted
- `{post_delete}`: executes _after_ a session is deleted
- `{no_restore}`: executes _at_ `VimEnter` \_when\_ no session is restored

Hooks are configured by setting

Expand Down Expand Up @@ -453,6 +453,7 @@ require('lualine').setup{
Neovim > 0.7

Tested with:

```
NVIM v0.7.0 - NVIM 0.10.0
```
Expand Down
3 changes: 2 additions & 1 deletion lua/auto-session/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ local function handle_autosession_command(data)
end
end

-- Handler for when a session is picked from the UI, either via Telescope or via AutoSession.select_session
---@private
---- Handler for when a session is picked from the UI, either via Telescope or via AutoSession.select_session
function AutoSession.restore_selected_session(session_filename)
Lib.logger.debug("[restore_selected_session]: filename: ", session_filename)

Expand Down

0 comments on commit 9de39de

Please sign in to comment.