8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4883372 commit 16bda4fCopy full SHA for 16bda4f
README.md
@@ -79,13 +79,13 @@ vim.api.nvim_create_autocmd({ 'User' }, {
79
Example how to save session every time a buffer is written:
80
81
```lua
82
-vim.api.nvim_create_autocmd({ 'BufWritePost' }, {
+vim.api.nvim_create_autocmd({ 'BufWritePre' }, {
83
group = config_group,
84
callback = function ()
85
if vim.bo.filetype ~= 'git'
86
and not vim.bo.filetype ~= 'gitcommit'
87
and not vim.bo.filetype ~= 'gitrebase'
88
- then session_manager.autosave_session() end
+ then session_manager.save_current_session() end
89
end
90
})
91
```
0 commit comments