From d7cfe3b151cc5f90589250f55c3abf0ff7c3a196 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 2 Dec 2021 13:06:44 +0800 Subject: Allow passing nil as opts in setup() --- lua/luatab/init.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua') diff --git a/lua/luatab/init.lua b/lua/luatab/init.lua index 9fab8cf..6dceddc 100644 --- a/lua/luatab/init.lua +++ b/lua/luatab/init.lua @@ -101,6 +101,7 @@ M.tabline = function() end local setup = function(opts) + opts = opts or {} if opts.title then M.title = opts.title end if opts.modified then M.modified = opts.modified end if opts.windowCount then M.windowCount = opts.windowCount end -- cgit v1.2.3