summaryrefslogtreecommitdiff
path: root/lua/telescope/opts.lua
blob: 0c3de91c3045ce64a040d8ff706e1b8c27a310e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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