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.
17 lines
378 B
17 lines
378 B
10 months ago
|
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,
|
||
|
})
|