Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F131991
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
802 B
Referenced Files
None
Subscribers
None
init.lua
View Options
local
controller
=
require
"ivy.controller"
local
config
=
require
"ivy.config"
local
register_backend
=
require
"ivy.register_backend"
local
ivy
=
{}
ivy
.
run
=
controller
.
run
ivy
.
register_backend
=
register_backend
-- Private variable to check if ivy has been setup, this is to prevent multiple
-- setups of ivy. This is only exposed for testing purposes.
---@private
ivy
.
has_setup
=
false
---@class IvySetupOptions
---@field backends (IvyBackend | { ["1"]: string, ["2"]: IvyBackendOptions} | string)[]
---@param user_config IvySetupOptions
function
ivy
.
setup
(
user_config
)
if
ivy
.
has_setup
then
return
end
config
.
user_config
=
user_config
or
{}
for
_
,
backend
in
ipairs
(
config
:
get
{
"backends"
}
or
{})
do
register_backend
(
backend
)
end
ivy
.
has_setup
=
true
end
return
ivy
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Apr 6 2026, 6:49 PM (5 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10567
Default Alt Text
init.lua (802 B)
Attached To
Mode
R1 ivy.nvim
Attached
Detach File
Event Timeline
Log In to Comment