minimal extui fuzzy finder for neovim

feat(plugin): user command param fuzzy matching

The completion which existed always showed the complete list of
artio.builtins and didn't use what the documentation calls the leading
portion (argLead) of the argument currently being completed on. This
uses the argLead with fuzzy matching.

Reviewed-on: https://github.com/comfysage/artio.nvim/pull/11

authored by

Martin Lundberg and committed by robinwobin.dev 9c654035 5442b17e

+3 -2
+3 -2
plugin/artio.lua
··· 46 46 builtin() 47 47 end, { 48 48 nargs = "?", 49 - complete = function(_, _, _) 50 - return vim.tbl_keys(require("artio.builtins")) 49 + complete = function(argLead) 50 + local builtins = vim.tbl_keys(require("artio.builtins")) 51 + return vim.fn.matchfuzzy(builtins, argLead) 51 52 end, 52 53 }) 53 54