minimal extui fuzzy finder for neovim

fix: prevent unnecessary `View:showmatches()` call

- fix extmark call in `View:hlselect()`

+3 -5
-2
lua/artio/picker.lua
··· 38 38 local default_actions = { 39 39 down = function(self, _) 40 40 self.idx = self.idx + 1 41 - self.view:showmatches() 42 41 self.view:hlselect() 43 42 end, 44 43 up = function(self, _) 45 44 self.idx = self.idx - 1 46 - self.view:showmatches() 47 45 self.view:hlselect() 48 46 end, 49 47 accept = function(_, co)
+3 -3
lua/artio/view.lua
··· 472 472 end 473 473 474 474 do 475 - local ok, result = self:mark(row, 0, { 475 + local extid = self:mark(row, 0, { 476 476 virt_text = { { self.picker.opts.pointer, "ArtioPointer" } }, 477 477 hl_mode = "combine", 478 478 virt_text_pos = "overlay", 479 479 line_hl_group = "ArtioSel", 480 480 invalidate = true, 481 481 }) 482 - if ok then 483 - self.select_ext = result 482 + if extid ~= -1 then 483 + self.select_ext = extid 484 484 end 485 485 end 486 486 end