mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
plugins/refactoring: init + test (#676)
This commit is contained in:
parent
9004ffe32f
commit
8fb5fc43fe
3 changed files with 195 additions and 0 deletions
30
tests/test-sources/plugins/utils/refactoring.nix
Normal file
30
tests/test-sources/plugins/utils/refactoring.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.refactoring.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.refactoring = {
|
||||
enable = true;
|
||||
promptFuncReturnType = {
|
||||
go = true;
|
||||
};
|
||||
promptFuncParamType = {
|
||||
go = true;
|
||||
};
|
||||
printVarStatements = {
|
||||
cpp = [
|
||||
"printf(\"a custom statement %%s %s\", %s)"
|
||||
];
|
||||
};
|
||||
printfStatements = {
|
||||
cpp = [
|
||||
"std::cout << \"%s\" << std::endl;"
|
||||
];
|
||||
};
|
||||
extractVarStatements = {
|
||||
go = "%s := %s // poggers";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue