You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
378 B
16 lines
378 B
vim.api.nvim_create_user_command('Solarized', function(args)
|
|
require('solarized.command').load(
|
|
args.fargs[1],
|
|
vim.list_slice(args.fargs, 2)
|
|
)
|
|
end, {
|
|
range = true,
|
|
nargs = '+',
|
|
complete = function(arg)
|
|
local list = require('solarized.command').list()
|
|
|
|
return vim.tbl_filter(function(s)
|
|
return string.match(s, '^' .. arg)
|
|
end, list)
|
|
end,
|
|
})
|
|
|