Feat(picker): implement Pick command

This allows you to do `:Pick colorschemes` instead of `:lua Pick('colorschemes')`. Makes using less
frequent pickers fast and easy!
This commit is contained in:
2025-02-27 16:52:43 -05:00
parent aacbf5fb99
commit 969510cee1
+5
View File
@@ -36,6 +36,11 @@ end
local function define_globals()
-- Define Pick function
Pick = require('data.func').pick
-- Define Pick command
vim.api.nvim_create_user_command('Pick', function(opts)
Pick(unpack(opts.fargs))
end, { nargs = '*' })
end
-- Run Setup function