🐻 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(view): check modechanged event

robin 52c148ea ed7b767e

+10 -1
+10 -1
lua/artio/view.lua
··· 255 255 vim.schedule(function() 256 256 self.augroup = vim.api.nvim_create_augroup("artio:group", { clear = true }) 257 257 258 - vim.api.nvim_create_autocmd({ "CmdlineLeave", "ModeChanged" }, { 258 + vim.api.nvim_create_autocmd("CmdlineLeave", { 259 259 group = self.augroup, 260 260 once = true, 261 261 callback = function() 262 262 self:close() 263 + end, 264 + }) 265 + 266 + vim.api.nvim_create_autocmd("ModeChanged", { 267 + group = self.augroup, 268 + callback = function(ev) 269 + if string.match(ev.match, "^i:") then 270 + self:close() 271 + end 263 272 end, 264 273 }) 265 274