mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-27 19:20:43 +01:00
feat: add remap for quickly compiling and running current cpp file
This commit is contained in:
@@ -124,6 +124,15 @@
|
|||||||
key = "}}";
|
key = "}}";
|
||||||
action = "}}zz";
|
action = "}}zz";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>cr";
|
||||||
|
action = ":w<CR>:TermExec cmd='mkdir -p ./out && g++ \"%\" -o \"./out/%:r\" && ./out/\"%:r\"'<CR>";
|
||||||
|
options = {
|
||||||
|
desc = "Compile and run current cpp file";
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
autoGroups = {
|
autoGroups = {
|
||||||
@@ -252,6 +261,8 @@
|
|||||||
settings.draw.delay = 0;
|
settings.draw.delay = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
toggleterm.enable = true;
|
||||||
|
|
||||||
cmp = {
|
cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
Reference in New Issue
Block a user