minimal extui fuzzy finder for neovim

feat: allow disabling `prompt_title`

+6 -1
+1
README.md
··· 40 40 bottom = true, -- whether to draw the prompt at the bottom 41 41 shrink = true, -- whether the window should shrink to fit the matches 42 42 promptprefix = "", -- prefix for the prompt 43 + prompt_title = true, -- whether to draw the prompt title 43 44 pointer = "", -- pointer for the selected match 44 45 use_icons = true, -- requires mini.icons 45 46 },
+2
lua/artio/config.lua
··· 9 9 ---@field bottom boolean 10 10 ---@field shrink boolean 11 11 ---@field promptprefix string 12 + ---@field prompt_title boolean 12 13 ---@field pointer string 13 14 ---@field use_icons boolean 14 15 ··· 27 28 bottom = true, 28 29 shrink = true, 29 30 promptprefix = "", 31 + prompt_title = true, 30 32 pointer = "", 31 33 use_icons = package.loaded['mini.icons'] and true or false, 32 34 },
+3 -1
lua/artio/picker.lua
··· 34 34 matches = {}, 35 35 }, require("artio.config").get(), props) 36 36 37 - t.prompttext = t.prompttext or ("%s %s"):format(t.prompt, t.opts.promptprefix) 37 + if not t.prompttext then 38 + t.prompttext = t.opts.prompt_title and ("%s %s"):format(t.prompt, t.opts.promptprefix) or t.opts.promptprefix 39 + end 38 40 39 41 t.items = vim 40 42 .iter(ipairs(t.items))