fix: check for nil opts in setup

main
Cedric M'Passi 2022-10-27 09:18:14 +02:00 committed by GitHub
parent 5347c83ee4
commit 2e61c9fb92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ function M.setup(opts)
config.setup(opts)
setup_commands()
if not opts.branch_separator and config.options.branch_separator == "_" then
if opts and not opts.branch_separator and config.options.branch_separator == "_" then
vim.notify(
"[Persisted.nvim] We will soon be changing the default `branch_separator` config value to `@@`\n" ..
"[Persisted.nvim] We notice you're using the current default value of `_`\n" ..