mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-08-16 02:45:09 +00:00
Begin work on larger global config, to tailor defaults
This commit is contained in:
@@ -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