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