mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nix): drop neovim legacy support
This commit is contained in:
parent
83bdeb6977
commit
8e78bef74b
30 changed files with 1 additions and 1 deletions
27
nix/home/common/neovim/nvim/snippets/c.json
Normal file
27
nix/home/common/neovim/nvim/snippets/c.json
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"Create main function": {
|
||||
"prefix": "main",
|
||||
"body": [
|
||||
"int main()",
|
||||
"{",
|
||||
"\t$0",
|
||||
"\treturn 0;",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"Debug expression": {
|
||||
"prefix": "dbg",
|
||||
"body": [
|
||||
"printf(\"${1:expression}: ${2:format}\\n\", ${1:expression});"
|
||||
]
|
||||
},
|
||||
"Check pointer": {
|
||||
"prefix": "cpt",
|
||||
"body": [
|
||||
"if (${1:ptr} == NULL) {",
|
||||
"\treturn $2;",
|
||||
"}",
|
||||
"$0"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue