Skip to content

Commit c10f3d6

Browse files
authored
support overriding settings.gui_config with an empty table (#1373)
* support overriding `settings.gui_config` with an empty table * format the code with stylua
1 parent 08f2dda commit c10f3d6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lua/core/init.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ local leader_map = function()
3232
end
3333

3434
local gui_config = function()
35-
vim.api.nvim_set_option_value("guifont", settings.gui_config.font_name .. ":h" .. settings.gui_config.font_size, {})
35+
if next(settings.gui_config) then
36+
vim.api.nvim_set_option_value(
37+
"guifont",
38+
settings.gui_config.font_name .. ":h" .. settings.gui_config.font_size,
39+
{}
40+
)
41+
end
3642
end
3743

3844
local neovide_config = function()

0 commit comments

Comments
 (0)