🐻 minimal ui2 fuzzy finder for Neovim codeberg.org/comfysage/artio.nvim
3
fork

Configure Feed

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

fix: let `Picker` handle active picker

robin 65026a91 d9d2b55a

+6 -4
-4
lua/artio/init.lua
··· 146 146 ---@param ... artio.Picker.config 147 147 artio.pick = function(...) 148 148 local Picker = require("artio.picker") 149 - if artio.active_picker then 150 - artio.active_picker:close() 151 - end 152 - artio.active_picker = Picker 153 149 return Picker:new(...):open() 154 150 end 155 151
+6
lua/artio/picker.lua
··· 30 30 ---@field actions? artio.Actions 31 31 local Picker = {} 32 32 Picker.__index = Picker 33 + Picker.active_picker = nil 33 34 34 35 local action_enum = { 35 36 accept = 0, ··· 87 88 end 88 89 89 90 function Picker:open() 91 + if Picker.active_picker then 92 + Picker.active_picker:close() 93 + end 94 + Picker.active_picker = self 95 + 90 96 self.view = View:new(self) 91 97 92 98 coroutine.wrap(function()