minimal extui fuzzy finder for neovim

fix(builtins): document files and grep props; allow overriding `vim.o.grepprg`

+10 -1
+10 -1
lua/artio/builtins.lua
··· 18 18 19 19 local findprg = "fd -H -p -t f --color=never" 20 20 21 + ---@class artio.picker.files.Props : artio.Picker.config 22 + ---@field findprg? string 23 + 24 + ---@param props? artio.picker.files.Props 21 25 builtins.files = function(props) 22 26 props = props or {} 23 27 props.findprg = props.findprg or findprg ··· 49 53 ) 50 54 end 51 55 56 + ---@class artio.picker.grep.Props : artio.Picker.config 57 + ---@field grepprg? string 58 + 59 + ---@param props? artio.picker.grep.Props 52 60 builtins.grep = function(props) 53 61 props = props or {} 62 + props.grepprg = props.grepprg or vim.o.grepprg 54 63 55 64 local ext = require("vim._extui.shared") 56 - local grepcmd = utils.make_cmd(vim.o.grepprg) 65 + local grepcmd = utils.make_cmd(props.grepprg) 57 66 58 67 return artio.pick(extend({ 59 68 items = {},