🪴 my neovim config:)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vim.once: move init to `:init()` method

robin 3f84a64a f422f3d5

+7 -4
+2
config/lua/ivy/init.lua
··· 1 1 require("ivy.on") 2 2 require("ivy.once") 3 + vim.once:init() 4 + 3 5 require("ivy.notifs").init() 4 6 5 7 local load_cfg = function(mod)
+5 -4
config/lua/ivy/once.lua
··· 108 108 return type(v) == "table" and k or nil 109 109 end) 110 110 end, 111 + init = function(self) 112 + self:iter():each(function(event) 113 + return self[event]:init() 114 + end) 115 + end, 111 116 }, 112 117 }) 113 - 114 - vim.once:iter():each(function(event) 115 - return vim.once[event]:init() 116 - end)