Skip to content

Commit

Permalink
Merge pull request #37 from benjamineskola/main
Browse files Browse the repository at this point in the history
fix: Invert boolean condition for show_on_start/toggle_keybind
  • Loading branch information
cmgriffing authored Dec 26, 2022
2 parents 5cfee78 + 7fa3032 commit d93872b
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 d93872b

Please sign in to comment.