Skip to content

Commit

Permalink
feat(nvim): add snippets for fold markers
Browse files Browse the repository at this point in the history
  • Loading branch information
aikow committed Jun 26, 2024
1 parent b44f21b commit 03e8683
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/karabiner/karabiner-capslock.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"modifiers": {
"optional": [
"left_shift",
"left_command"
"left_command",
"left_option"
]
}
},
Expand Down
42 changes: 42 additions & 0 deletions config/snips/snippets/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,47 @@
"$LINE_COMMENT │ ${1}",
"$LINE_COMMENT └───────────────────────────────────────────────────────────────────────"
]
},
"fold level 1": {
"prefix": "ff1",
"body": [
"$LINE_COMMENT {{{1"
],
"description": "Insert a level 1 fold marker"
},
"fold level 2": {
"prefix": "ff2",
"body": [
"$LINE_COMMENT {{{2"
],
"description": "Insert a level 2 fold marker"
},
"fold level 3": {
"prefix": "ff3",
"body": [
"$LINE_COMMENT {{{3"
],
"description": "Insert a level 3 fold marker"
},
"fold level 4": {
"prefix": "ff4",
"body": [
"$LINE_COMMENT {{{4"
],
"description": "Insert a level 4 fold marker"
},
"fold level 5": {
"prefix": "ff5",
"body": [
"$LINE_COMMENT {{{5"
],
"description": "Insert a level 5 fold marker"
},
"fold level 6": {
"prefix": "ff6",
"body": [
"$LINE_COMMENT {{{6"
],
"description": "Insert a level 6 fold marker"
}
}
2 changes: 2 additions & 0 deletions docs/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ hidutil property --set '
```

[Reference](https://jonnyzzz.com/blog/2017/12/04/macos-keys/)

Alternatively, you can install karabiner to remap the keys instead.

0 comments on commit 03e8683

Please sign in to comment.