From ad3203c214866e14a5b9f08ff2461d593c1f2003 Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Wed, 6 Sep 2023 10:34:49 -0400 Subject: [PATCH] Bugfix: Account for empty setup calls --- lua/gitlab/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/gitlab/init.lua b/lua/gitlab/init.lua index 4344c5a..a5d0a30 100644 --- a/lua/gitlab/init.lua +++ b/lua/gitlab/init.lua @@ -16,6 +16,7 @@ local revisions = state.dependencies.revisions return { setup = function(args) + if args == nil then args = {} end server.build() -- Builds the Go binary if it doesn't exist state.setPluginConfiguration() -- Sets configuration from `.gitlab.nvim` file state.merge_settings(args) -- Sets keymaps and other settings from setup function