Begin work on larger global config, to tailor defaults
This commit is contained in:
17
lua/telescope/opts.lua
Normal file
17
lua/telescope/opts.lua
Normal 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
|
||||
Reference in New Issue
Block a user