From ea113ddc74c2a333046368646c07961954413a71 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 13 Oct 2022 20:49:27 +0200 Subject: [PATCH] with options in another statement --- lua/github-presence/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/github-presence/init.lua b/lua/github-presence/init.lua index 5a6abc8..d67dded 100644 --- a/lua/github-presence/init.lua +++ b/lua/github-presence/init.lua @@ -3,7 +3,8 @@ local GitHubPresence = {} GitHubPresence.setup = {} function GitHubPresence:setup(options) - self.options = options or {} + options = options or {} + self.options = options vim.schedule( function() vim.cmd(string.format([[echom "[%s] %s"]], "github-presence", "initialized")) end )