1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00
Commit Graph

60 Commits

Author SHA1 Message Date
jdhao 9d8a58be17 update markdown snippet 2022-08-21 11:47:03 +08:00
jdhao 81696c9e13 update python snippet 2022-06-14 22:02:26 +08:00
jdhao 639b3d6067 update tex snippets 2022-04-05 00:43:01 +08:00
jdhao 36bdde7fc9 update C++ snippets 2022-03-19 14:48:46 +08:00
jdhao 3c7b40bc15 add snip for ultisnips snippets files 2022-03-05 22:15:35 +08:00
jdhao a0179d01c1 add new markdown snippet 2022-03-05 22:15:02 +08:00
jdhao ec6549948a update Markdown snippet 2022-02-11 21:11:27 +08:00
jdhao aa0cf40591 update Markdown snippets 2022-02-08 23:13:10 +08:00
jdhao 9adc3fdf16 remove double quotes for snippet trigger 2021-12-23 22:41:16 +08:00
jdhao 9e6a71c32d update cpp snippet 2021-12-04 23:47:50 +08:00
jdhao b96a3ce762 update snippets 2021-11-21 23:26:45 +08:00
jdhao 46a465508a update snippets 2021-11-10 22:23:51 +08:00
jdhao e0c406a344 add cpp snippets 2021-11-08 21:57:21 +08:00
jdhao aad372caf0 more snippets 2021-11-04 00:05:09 +08:00
jdhao b96799f400 fix typo in snippets 2021-11-02 23:00:50 +08:00
jdhao 59615a539c remove redundant snippets 2021-10-30 23:55:29 +08:00
jdhao 601a13acb1 update snippets 2021-10-30 23:10:40 +08:00
jdhao 80893e7e4a update cpp snippets 2021-10-30 22:53:39 +08:00
jdhao cdccb404b5 Merge branch 'master' of https://github.com/jdhao/nvim-config 2021-10-30 01:27:04 +08:00
jdhao e2efea79ba more cpp snippets 2021-10-30 01:26:38 +08:00
jdhao b6df22ee89 more cpp snippets 2021-10-30 01:24:08 +08:00
jdhao 0240925496 update cpp snippet 2021-10-27 23:49:07 +08:00
jdhao e2a8687e48 update markdown snippets 2021-10-23 01:14:09 +08:00
jdhao efe1a48dce update cpp snippet 2021-09-07 00:13:32 +08:00
jdhao b4d320ccd3 update cpp snippets 2021-09-02 23:29:41 +08:00
jdhao 008831e5c2 update cpp snippets 2021-08-22 01:12:44 +08:00
jdhao 22e17f77c1 update python snippets 2021-07-26 00:14:34 +08:00
jdhao b9801dd0bc More cpp snippets 2021-07-12 23:47:11 +08:00
jdhao 8753d5c555 update the snippets to print 1D and 2D sequences
Use template to make the function general enough for normal cases.
Ref: http://users.cis.fiu.edu/~weiss/Deltoid/vcstl/templates
2021-07-12 23:46:51 +08:00
jdhao 1719e78433 Add more cpp snippets 2021-06-29 14:52:42 +08:00
jdhao 0c05b15dac update cpp snippets 2021-06-27 10:19:19 +08:00
jdhao 710effaeb6 update cpp snippet 2021-06-26 01:05:50 +08:00
jdhao 8b4133cd68 Add cpp snippet 2021-06-20 19:14:47 +08:00
jdhao b0af2ed221 Add cpp snippets 2021-06-18 00:23:18 +08:00
jdhao 12bc009d2d Add「直角引号」for Markdown
「」is useful when writing post in Chinese.
2021-02-21 22:50:27 +08:00
jdhao 27a107112b Add augroup snippet for vim script 2021-02-20 00:29:55 +08:00
jdhao c81d148627 Update markdown snippets 2021-01-13 22:55:20 +08:00
jdhao 04ede68669 update markdown snippets 2020-11-15 20:19:10 +08:00
jdhao c7c8f8a4ec add fun snippet for vim script 2020-10-18 20:03:46 +08:00
jdhao 649f5b93eb add HTML font tag for Markdown 2020-08-30 03:35:14 +08:00
jdhao eab64cd5fb add more kbd tag snippets 2020-05-25 21:12:20 +08:00
jdhao a14558ed97 Update markdown.snippets 2020-05-25 20:31:32 +08:00
jdhao 70f02ae20f fix: time zone info is now shown
datetime.now() produces a naive datetime object which does not know tzinfo. 
So the '%z' has no effect. We need to convert it to time zone aware object using
`datetime.astimezone()`.
2020-04-17 18:06:48 +08:00
jdhao ec6349fb3f refactor: remove update info from file header
The file update info can be accessed from the file directly on the command line. We often forget to update the
update field in the Python source file header, making this field rather useless. I have also set up the Neovim to show file update time on the title of terminal window.  So there is no need to retain the update field in header comment.
2020-04-16 14:21:31 +08:00
jdhao 823e09f5b6 update: improve snippets 2020-03-30 22:36:53 +08:00
jdhao a5e5c8cba4 Add detail snippet 2020-03-09 00:45:23 +08:00
jdhao 11d71865a5 Update snippets 2020-03-08 14:14:21 +08:00
jdhao c5d6ab8f93 Update all.snippets 2019-12-24 21:45:39 +08:00
jdhao 61ac9785cd Update Markdown snippets 2019-12-22 13:47:58 +08:00
jdhao 3fdf189471 Update meta markdown snippets
The original snippet use vim interpolation and the date keeps changing while we are inside the
snippet region, which is not desired. According to https://www.youtube.com/watch?v=JJQYwt6Diro,
we can use Python interpolation and check if snip.c  is empty to see if the interpolation has been finished.
If the interpolation has finished (snip.c is empty in this condition), the date will be fixed and does not change
when we are inside the snippet region.
2019-12-21 20:48:02 +08:00