From 39fc2627aca317719023c29394f786f4e24cd7e3 Mon Sep 17 00:00:00 2001 From: Dan Sully Date: Sat, 25 Jun 2022 09:12:06 -0700 Subject: [PATCH] Allow calling .setup() without an empty map. --- lua/nvim-biscuits/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/nvim-biscuits/init.lua b/lua/nvim-biscuits/init.lua index 5cb95d4..6b52b84 100644 --- a/lua/nvim-biscuits/init.lua +++ b/lua/nvim-biscuits/init.lua @@ -142,6 +142,10 @@ nvim_biscuits.decorate_nodes = function(bufnr, lang) end nvim_biscuits.setup = function(user_config) + if user_config == nil then + user_config = {} + end + final_config = utils.merge_tables(final_config, user_config) if user_config.default_config then