diff --git a/modules/cli/nixvim.nix b/modules/cli/nixvim.nix index f189eae..88ef3c4 100644 --- a/modules/cli/nixvim.nix +++ b/modules/cli/nixvim.nix @@ -124,6 +124,15 @@ key = "}}"; action = "}}zz"; } + { + mode = "n"; + key = "cr"; + action = ":w:TermExec cmd='mkdir -p ./out && g++ \"%\" -o \"./out/%:r\" && ./out/\"%:r\"'"; + 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 = {