586141cb14
Fix todo (and other) snippets
...
coc-snippets stopped accepting the multiline python code in the todo
(and other) snippets, this fixes an `UnexpectedIndentation` exception.
2023-07-27 17:53:20 +01:00
d29cfc6aab
Remove support for _template snippets
2023-03-30 15:28:42 +01:00
024268db74
Remove argparse from Python main snippet
2023-03-30 15:01:53 +01:00
34073608c8
Update Python main snippet
2021-05-30 20:51:55 +01:00
858677ef79
Add jinja snippets inheriting from html
2020-07-18 13:54:22 +01:00
72316785d5
Add CMake reStructuredText block snippet
2020-04-02 12:11:46 +01:00
7fb1352108
Improve C++ template snippet
2019-11-07 20:43:05 +00:00
2ee41bb80f
Don't use array syntax in C main snippet
2019-09-07 23:41:05 +01:00
57257c1c9a
Add generic admonition snippet for rst files
2019-09-05 11:17:25 +01:00
c1d167f2e3
Add rst code-block snippet
2019-08-29 14:58:21 +01:00
f85d59197a
Add reStructuredText admonition snippets
2019-08-26 15:22:00 +01:00
6f653e8ad9
Add C comment block snippet
2019-07-14 21:14:43 +01:00
51b95acf90
Improve Python snippets
2019-05-15 11:56:39 +01:00
054507cdff
Fix formatting of C/C++ debug snippet
2019-05-03 11:02:05 +01:00
01b027b5ac
Support snippet templates and add help snippets
...
Add `autocmd` to automatically expand the `_template` snippet on the
`BufNewFile` event, if the expansion fails because the `_template`
snippet does not exist for the current `filetype` undo the changes. Do
the same thing when the `filetype` changes to `help`, since these are
`text` files to begin with the first `autocmd` has no effect.
2019-03-31 15:04:08 +01:00
baff9ae3fd
Improve global snippets
...
* `todo`, `note` now do not add comment strings when in a comment line
* `fixme` added to match `todo` and `note
* `date` renamed `datetime` and updated to match the unix `date` command
* `date`, `time` added inserting only the date or time now
* `utc` updated, no longer spitting the timezone offset
2019-03-30 17:07:29 +00:00
91c85da67b
Add C ANSI color escape sequence snippets
2019-03-27 10:01:55 +00:00
84e310a28f
Fix Python 3 issue in todo snippet
2019-03-23 23:15:13 +00:00
ce6ec3d410
Improve vim function snippet
2019-03-23 21:06:45 +00:00
c8ac5496ca
Add Python raw string snippet
2019-03-17 14:56:25 +00:00
74c73066f4
Escape ¯\_(ツ)_/¯ snippet except in text documents
2019-03-08 15:48:54 +00:00
aff61cd8a8
Change *x snippet to mark the checkbox checked
2019-02-27 09:40:42 +00:00
709408fdeb
Add lit global ID regex snippet
2019-02-27 09:40:34 +00:00
d0ce0a66ad
Add more flexible lit regex snippets
2019-02-26 16:19:22 +00:00
97904dd47e
Add shrug and tableflip snippets
2018-12-03 11:39:51 +00:00
34ba64980a
Change main C snippet to an array of const char*
2018-12-03 11:39:51 +00:00
3a60c0abcf
Improve static_assert snippet & increase sync minlines
2018-11-30 17:46:46 +00:00
446063c2e3
Add sizeof, decltype, and declval snippets
2018-11-30 17:46:46 +00:00
6c818dd2d7
Remove duplicate Doxygen snippets
2018-08-28 11:11:56 +01:00
10fd48a703
Improve cpp template snippet
2018-08-26 10:51:11 +01:00
6cc8627c97
Add a lit named ID match snippet
2018-08-26 10:51:11 +01:00
456e52467a
Update C++ namespace snippet to match clang-format
...
New snippet outputs this
```cpp
namespace {
} // namespace
```
instead of
```cpp
namespace {
} // anonymous
```
and this
```cpp
namespace foo {
} // namespace foo
```
instead of
```cpp
namespace foo {
} // foo
```
2018-08-26 10:51:11 +01:00
2c842cea09
Add Doxygen @retval snippet & other improvements
2018-08-26 10:51:11 +01:00
83114d25a9
Add extern "C" block snippet
2018-08-26 10:51:11 +01:00
287e52fb2a
Add bool to C string snippet
2018-08-26 10:51:11 +01:00
f4915efffd
Add string_view c++ printf snippet
2018-08-26 10:51:11 +01:00
ec0ad0ae00
Add another variant of GitHub checkbox snip
2018-08-26 10:51:11 +01:00
ce97e935a8
Add more intuitive GitHub checkbox snippet
2018-08-26 10:51:11 +01:00
d4239e2dc3
Add more Doxygen snippets for C/C++
2018-08-26 10:51:09 +01:00
5f2c083d7b
Fix Markdown fenced code block snippet
2018-08-26 10:50:08 +01:00
07c093e9e0
Add python snippet to insert ipdb breakpoint
2018-08-26 10:50:08 +01:00
08f3f8d38f
Add CMake debug snippet
2018-08-26 10:50:08 +01:00
0f852b0518
Add fprintf debug snippet for C/C++ files
2018-08-26 10:50:08 +01:00
2dea77ba81
Add asciidoc refpage snippet
2018-08-26 10:50:08 +01:00
c2799dd5de
Add vim command snippet
2018-08-26 10:50:08 +01:00
aecdb9a11a
Add augroup vim snippet
2018-08-26 10:50:08 +01:00
bd2301e3e8
Add main Python snippet
2018-08-26 10:50:07 +01:00
c2040731f2
Add zsh snippets
2018-08-26 10:50:07 +01:00
60664eaa16
Add std::printf and std::fprintf snippets
2018-08-26 10:50:07 +01:00
06633f3394
Add ; to do/while snippet
2018-08-26 10:50:07 +01:00