20 lines
384 B
Lua
20 lines
384 B
Lua
|
local builtin = {}
|
||
|
|
||
|
-- Ref: https://github.com/tjdevries/lazy.nvim
|
||
|
local function require_on_exported_call(mod)
|
||
|
return setmetatable({}, {
|
||
|
__index = function(_, picker)
|
||
|
return function(...)
|
||
|
return require(mod)[picker](...)
|
||
|
end
|
||
|
end,
|
||
|
})
|
||
|
end
|
||
|
|
||
|
builtin.git_status = require_on_exported_call("pickers").files
|
||
|
|
||
|
|
||
|
builtin = apply_config(builtin)
|
||
|
return builtin
|
||
|
|