Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c894bc

Browse filesBrowse files
committed
feat(compiler.nvim) .solution.toml template.
1 parent f90a1ae commit 9c894bc
Copy full SHA for 9c894bc

File tree

3 files changed

+29
-1
lines changed
Filter options

3 files changed

+29
-1
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ These snippets won't interfere with friendly-snippets, or your personal snippets
44

55
### `.toml`
66

7-
* `compiler-nvim`: This snippet creates a template for your [compiler.nvim](https://github.com/Zeioth/compiler.nvim) `.solution.toml` file, so you don't need to remember it.
7+
* `compiler-nvim`: This snippet creates a template for your [compiler.nvim](https://github.com/Zeioth/compiler.nvim) `.solution.toml` file, so you don't need to go to the wiki to check its syntax.

‎package.json

Copy file name to clipboard
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "normal-snippets",
3+
"engines": {
4+
"vscode": "^1.11.0"
5+
},
6+
"contributes": {
7+
"snippets": [
8+
{
9+
"language": "toml",
10+
"path": "./snippets/compiler-nvim.json"
11+
}
12+
]
13+
}
14+
}

‎snippets/compiler-nvim.json

Copy file name to clipboard
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"compiler-nvim-solution-toml": {
3+
"prefix": "compiler-nvim-solution-toml",
4+
"description": ".solution.toml template for compiler.nvim",
5+
"body": [
6+
"[${2:AnyNameYouWant}]",
7+
"entry_point = \"${3:./main.c}\"",
8+
"output = \"${4:./bin/myprogram}\"",
9+
"",
10+
"[SOLUTION]",
11+
"executable = \"${5:./bin/myprogram}\""
12+
]
13+
}
14+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.