✨ 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user