diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2023-04-10 16:38:26 -0300 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2023-04-10 16:38:26 -0300 |
commit | 57e115339d00a2a8afe09dba6f83009cc5a02e99 (patch) | |
tree | f05a871967f57454d9e14a085f87cafede538941 /.config/nvim/snippets/c.json | |
parent | b876e4afcab3d01f9207f9f4794828fd8b091d9d (diff) |
nvim update, semi-refactor
Diffstat (limited to '.config/nvim/snippets/c.json')
-rw-r--r-- | .config/nvim/snippets/c.json | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/nvim/snippets/c.json b/.config/nvim/snippets/c.json new file mode 100644 index 0000000..abed0f2 --- /dev/null +++ b/.config/nvim/snippets/c.json @@ -0,0 +1,19 @@ +{ + "header_guard": { + "prefix": "header_guard", + "body": [ + "#ifndef _$1_H_", + "#define _$1_H_", + "$0", + "#endif" + ] + }, + "function": { + "prefix": "function", + "body": [ + "$1 $2($3) {", + " $0", + "}" + ], + } +} |