Skip to content

Commit

Permalink
hotfix: proper checking to set default configuration values
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed Aug 27, 2023
1 parent 0f7b12d commit f0f1bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/sweetie/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local highlights = require("sweetie.highlights")

-- fallback to default configuration values if there is no user configuration yet
-- and merge defaults with user configuration values otherwise
if not vim.g.sweetie or vim.g.sweetie <= 0 then
if not vim.g.sweetie or #vim.g.sweetie <= 0 then
vim.g.sweetie = default_config
else
vim.g.sweetie = vim.tbl_deep_extend("force", default_config, vim.g.sweetie)
Expand Down

0 comments on commit f0f1bf2

Please sign in to comment.