Skip to content

Commit

Permalink
Allow calling .setup() without an empty map.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsully authored Jun 25, 2022
1 parent ed33933 commit 39fc262
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/nvim-biscuits/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39fc262

Please sign in to comment.