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

24 Commits

Author SHA1 Message Date
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
jdhao 37498210ba Update all.snippets 2019-12-20 11:45:34 +08:00
jdhao 54e03e5bfc Update markdown.snippets 2019-12-19 11:24:48 +08:00
jdhao a5be915ced Update Markdown front matter snip trigger 2019-12-19 00:53:21 +08:00
jdhao d5392b1054 Add markdown header snippets
Now we can type h1, h2, ..., h6 and press <Tab> to generate header of corresponding
level. It is more intuitive than vim-snippets's default snippets for headers, i.e., sec, ssec,
and so on.
2019-12-18 21:07:59 +08:00
jdhao 31f88c82cf Add snippet for Python 2019-12-05 10:40:29 +08:00
jdhao 0e491bf4dd Update Markdown snippets 2019-12-03 00:42:10 +08:00
jdhao eab8312aea Add LaTeX snippet 2019-09-21 00:03:38 +08:00
jdhao a28c908c66 Various small update 2019-09-16 23:59:09 +08:00
jdhao b4255e204a update snippets 2019-08-06 00:16:45 +08:00
jdhao deb3266920 Add Ultisnips snippets 2019-04-27 00:16:43 +08:00