about summary refs log tree commit diff
path: root/configs/shared/.config/nvim/templates
diff options
context:
space:
mode:
Diffstat (limited to 'configs/shared/.config/nvim/templates')
-rw-r--r--configs/shared/.config/nvim/templates/boilerplate.c6
-rw-r--r--configs/shared/.config/nvim/templates/boilerplate.rs5
2 files changed, 11 insertions, 0 deletions
diff --git a/configs/shared/.config/nvim/templates/boilerplate.c b/configs/shared/.config/nvim/templates/boilerplate.c
new file mode 100644
index 000000000000..949743d72587
--- /dev/null
+++ b/configs/shared/.config/nvim/templates/boilerplate.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+  printf("Hello, world!");
+  return 0;
+}
diff --git a/configs/shared/.config/nvim/templates/boilerplate.rs b/configs/shared/.config/nvim/templates/boilerplate.rs
new file mode 100644
index 000000000000..c83adbc69fa0
--- /dev/null
+++ b/configs/shared/.config/nvim/templates/boilerplate.rs
@@ -0,0 +1,5 @@
+fn main() {
+    // The statements here will be executed when the compiled binary is called.
+
+    println!("Hello, world!");
+}