Skip to content

Commit

Permalink
Update Default (Linux).sublime-keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
Varriount authored Apr 17, 2017
1 parent 94993da commit 138e6fb
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,37 @@
{ "key": "selector", "operator": "equal", "operand": "source.nim" },
{ "key": "selector", "operator": "equal", "operand": "source.nims" }
]
},

// Doc-comment completion
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n## $0"}, "context":
[
{ "key": "setting.doccontinue.enabled", "operand": true },
{ "key": "selection_empty", "operand": true },
{ "key": "selector", "operand": "comment.line.number-sign.doc-comment.nim" }
]
},
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n## $0"}, "context":
[
{ "key": "setting.doccontinue.enabled", "operand": true },
{ "key": "setting.doccontinue.autostop", "operand": false },
{ "key": "selector", "operand": "comment.line.number-sign.doc-comment.empty.nim"}
]
},

// Multi-line doc-comment completion
{ "keys": ["["], "command": "insert_snippet", "args": {"contents": "[ $0 ]#"}, "context":
[
{ "key": "selector", "operator":"equal", "operand": "punctuation.definition.comment.nim"}
]
},

// Pragma completion
{ "keys": ["."], "command": "insert_snippet", "args": {"contents": ".$0."}, "context":
[
{ "key": "selector", "operand": "source.nim" },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "{$"},
{ "key": "following_text", "operator": "regex_contains", "operand": "^}"}
]
}
]
]

0 comments on commit 138e6fb

Please sign in to comment.