From d176dd80da1c07c25fd23ad8f934b6055b10889b Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Fri, 9 Jul 2021 21:00:00 +0200 Subject: hotfix: just only false to disable I knew i will break it with my last commit --- lua/telescope/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/telescope/config.lua') diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua index 00d4101..e5a3ead 100644 --- a/lua/telescope/config.lua +++ b/lua/telescope/config.lua @@ -222,7 +222,7 @@ local telescope_defaults = { }, [[ This field handles the configuration for prompt history. By default it is a table, with default values (more below). - To disable history, set it to either false or nil. + To disable history, set it to false. Currently mappings still need to be added, Example: mappings = { @@ -381,7 +381,7 @@ function config.set_defaults(user_defaults, tele_defaults) ) end if name == "history" then - if not user_defaults[name] or not config.values[name] then + if user_defaults[name] == false or config.values[name] == false then return false end -- cgit v1.2.3