neovim: load persistence.nvim in BufEnter

This way it will still work in a readonly buffer (eg. alpha)
This commit is contained in:
Hoang Nguyen 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
1 changed files with 1 additions and 1 deletions

View File

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