mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 12:10:45 +02:00
feat: add remap for quickly compiling and running current cpp file
This commit is contained in:
@@ -124,6 +124,15 @@
|
||||
key = "}}";
|
||||
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 = {
|
||||
@@ -252,6 +261,8 @@
|
||||
settings.draw.delay = 0;
|
||||
};
|
||||
|
||||
toggleterm.enable = true;
|
||||
|
||||
cmp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
Reference in New Issue
Block a user