1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-19 06:05:42 +08:00
2024-07-12 00:31:36 +08:00

18 lines
604 B
Lua

--=============================================================================
-- cpicker.lua
-- Copyright (c) 2019-2024 Wang Shidong & Contributors
-- Author: Wang Shidong < wsdjeg@outlook.com >
-- URL: https://spacevim.org
-- License: GPLv3
--=============================================================================
if vim.api.nvim_create_user_command then
local function complete(...)
return {'all', 'rgb', 'hsl'}
end
vim.api.nvim_create_user_command('Cpicker', function(opt)
require('cpicker').picker(opt.fargs)
end, { nargs = '*', complete = complete })
end