From 2e61c9fb92c717457eaf3cde19a15e9bb4d78aaa Mon Sep 17 00:00:00 2001 From: Cedric M'Passi Date: Thu, 27 Oct 2022 09:18:14 +0200 Subject: [PATCH] fix: check for nil opts in setup --- lua/persisted/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/persisted/init.lua b/lua/persisted/init.lua index be39af7..9b3917c 100644 --- a/lua/persisted/init.lua +++ b/lua/persisted/init.lua @@ -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" ..