minimal extui fuzzy finder for neovim

feat(builtins): add helptags picker

+25
+25
lua/artio/builtins.lua
··· 50 50 }) 51 51 end 52 52 53 + local function find_helptags() 54 + local buf = vim.api.nvim_create_buf(false, true) 55 + vim.bo[buf].buftype = "help" 56 + local tags = vim.api.nvim_buf_call(buf, function() 57 + return vim.fn.taglist(".*") 58 + end) 59 + vim.api.nvim_buf_delete(buf, { force = true }) 60 + return vim.tbl_map(function(t) 61 + return t.name 62 + end, tags) 63 + end 64 + 65 + builtins.helptags = function() 66 + local lst = find_helptags() 67 + 68 + return artio.generic(lst, { 69 + prompt = "helptags", 70 + on_close = function(text, _) 71 + vim.schedule(function() 72 + vim.cmd.help(text) 73 + end) 74 + end, 75 + }) 76 + end 77 + 53 78 return builtins