Skip to content

Commit

Permalink
docs: add link to #72 describing solution
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejboczar committed Jul 15, 2024
1 parent cf77087 commit a005c9b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,18 @@ Neovim or loading a different session. This behavior is disabled by default, but
using the `autosave.*` configuration options. Check [doc/possession.txt](./doc/possession.txt)
for details.

### Overwriting CWD session

To prevent overwriting cwd session in some cases (as described in https://github.com/jedrzejboczar/possession.nvim/issues/72),
you can use the following setting:
```lua
autosave = {
cwd = function()
return not require('possession.session').exists(require('possession.paths').cwd_session_name())
end
}
```

## Auto-load

Sessions can be auto-loaded by setting the `autoload.*` config options. Check [doc/possession.txt](./doc/possession.txt)
Expand Down

0 comments on commit a005c9b

Please sign in to comment.