Begin work on larger global config, to tailor defaults

This commit is contained in:
TJ DeVries
2020-09-07 00:20:08 -04:00
parent 2592586533
commit 11a3c70609
7 changed files with 165 additions and 56 deletions

17
lua/telescope/opts.lua Normal file
View File

@@ -0,0 +1,17 @@
local opts_manager = {}
-- Could use cool metatable to do this automatically
-- Idk, I have some other thoughts.
opts_manager.shorten_path = function(opts)
if opts.shorten_path ~= nil then
return opts.shorten_path
elseif config.values.shorten_path ~= nil then
return config.values.shorten_path
else
return true
end
end
return opts_manager