Skip to content

Commit

Permalink
Invert boolean condition for show_on_start/toggle_keybind
Browse files Browse the repository at this point in the history
Resolves #26
  • Loading branch information
benjamineskola committed Dec 26, 2022
1 parent 5cfee78 commit 7fa3032
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/nvim-biscuits/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fa3032

Please sign in to comment.