neovim: load persistence.nvim in BufEnter

This way it will still work in a readonly buffer (eg. alpha)
This commit is contained in:
FollieHiyuki 2021-09-24 16:08:01 +07:00
parent b9d674767b
commit fc2f231aaf
No known key found for this signature in database
GPG Key ID: 813CF484F4993419

View File

@ -377,7 +377,7 @@ return require('packer').startup(
}
use {
'folke/persistence.nvim',
event = 'BufReadPre',
event = 'BufEnter',
config = tools.session_conf
}
use {'tweekmonster/startuptime.vim', cmd = 'StartupTime'} -- Just for benchmarking