tests/modules/output: add tests for providers

This commit is contained in:
Heitor Augusto 2024-11-13 16:34:13 -03:00
parent d100a4e994
commit f11a877bcc
No known key found for this signature in database

View file

@ -99,4 +99,54 @@
}
];
};
with-providers = {
withNodeJs = true;
withPerl = true;
withPython3 = true;
withRuby = true;
extraConfigLua = ''
if vim.fn.executable("nvim-node") ~= 1 then
print("Unable to find Node.js provider.")
end
if vim.fn.executable("nvim-perl") ~= 1 then
print("Unable to find Perl provider.")
end
if vim.fn.executable("nvim-python3") ~= 1 then
print("Unable to find Python3 provider.")
end
if vim.fn.executable("nvim-ruby") ~= 1 then
print("Unable to find Ruby provider.")
end
'';
};
without-providers = {
withNodeJs = false;
withPerl = false;
withPython3 = false;
withRuby = false;
extraConfigLua = ''
if vim.fn.executable("nvim-node") == 1 then
print("Node.js provider was found.")
end
if vim.fn.executable("nvim-perl") == 1 then
print("Perl provider was found.")
end
if vim.fn.executable("nvim-python3") == 1 then
print("Python3 provider was found.")
end
if vim.fn.executable("nvim-ruby") == 1 then
print("Ruby provider was found.")
end
'';
};
}