Skip to content

Commit 138e6fb

Browse files
authored
Update Default (Linux).sublime-keymap
1 parent 94993da commit 138e6fb

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

Default (Linux).sublime-keymap

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,37 @@
1717
{ "key": "selector", "operator": "equal", "operand": "source.nim" },
1818
{ "key": "selector", "operator": "equal", "operand": "source.nims" }
1919
]
20+
},
21+
22+
// Doc-comment completion
23+
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n## $0"}, "context":
24+
[
25+
{ "key": "setting.doccontinue.enabled", "operand": true },
26+
{ "key": "selection_empty", "operand": true },
27+
{ "key": "selector", "operand": "comment.line.number-sign.doc-comment.nim" }
28+
]
29+
},
30+
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n## $0"}, "context":
31+
[
32+
{ "key": "setting.doccontinue.enabled", "operand": true },
33+
{ "key": "setting.doccontinue.autostop", "operand": false },
34+
{ "key": "selector", "operand": "comment.line.number-sign.doc-comment.empty.nim"}
35+
]
36+
},
37+
38+
// Multi-line doc-comment completion
39+
{ "keys": ["["], "command": "insert_snippet", "args": {"contents": "[ $0 ]#"}, "context":
40+
[
41+
{ "key": "selector", "operator":"equal", "operand": "punctuation.definition.comment.nim"}
42+
]
43+
},
44+
45+
// Pragma completion
46+
{ "keys": ["."], "command": "insert_snippet", "args": {"contents": ".$0."}, "context":
47+
[
48+
{ "key": "selector", "operand": "source.nim" },
49+
{ "key": "preceding_text", "operator": "regex_contains", "operand": "{$"},
50+
{ "key": "following_text", "operator": "regex_contains", "operand": "^}"}
51+
]
2052
}
21-
]
53+
]

0 commit comments

Comments
 (0)