From 7fa3032c9a1731e78f77e21387298e558bbcd676 Mon Sep 17 00:00:00 2001 From: Benjamin Eskola Date: Mon, 26 Dec 2022 14:54:45 +0000 Subject: [PATCH] Invert boolean condition for show_on_start/toggle_keybind Resolves #26 --- lua/nvim-biscuits/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/nvim-biscuits/init.lua b/lua/nvim-biscuits/init.lua index 59a393e..bdcdccd 100644 --- a/lua/nvim-biscuits/init.lua +++ b/lua/nvim-biscuits/init.lua @@ -180,8 +180,7 @@ nvim_biscuits.BufferAttach = function(bufnr) " BiscuitColor") -- we need to fire once at the very start if config allows - if toggle_keybind ~= nil and - config.get_language_config(final_config, lang, "show_on_start") == true then + if (not toggle_keybind) or config.get_language_config(final_config, lang, "show_on_start") then nvim_biscuits.decorate_nodes(bufnr, lang) else nvim_biscuits.should_render_biscuits = false