aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-12-02 13:06:44 +0800
committerGitHub <noreply@github.com>2021-12-02 13:06:44 +0800
commitd7cfe3b151cc5f90589250f55c3abf0ff7c3a196 (patch)
treef8f200913031e1480eeb979f96beb556f098f390 /lua
parent787b79da5c803e2257f428dae5ceb831e8ac0f1c (diff)
downloadminitab.nvim-d7cfe3b151cc5f90589250f55c3abf0ff7c3a196.tar.xz
minitab.nvim-d7cfe3b151cc5f90589250f55c3abf0ff7c3a196.zip
Allow passing nil as opts in setup()
Diffstat (limited to 'lua')
-rw-r--r--lua/luatab/init.lua1
1 files changed, 1 insertions, 0 deletions
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