Commit 51eec4e
committed
fix: Remove gifs from repo & fix conceal on window change
## Details
I didn't really consider the fact that storing gif demos in this
repo would make the repo and especially its history much larger
and forces everyone to clone mostly useless data.
Add the gifs to gitignore. For now will manually upload them to
GitHub when they change and update the README. Less convenient
but not too bad.
Currently if you swith out of a markdown buffer the line the
cursor was last on will remain anti-concealed. Add BufLeave
event which will recognize that the buffer is no longer active
and show all marks.
Split buffer autocommands into 2 groups, one that requires re-parsing,
currently only TextChanged. And another that does not, which is now
BufWinEnter and BufLeave. This works because the ui will still parse
marks if it does not have any cached.
Add cache invalidation to the setup method. Since we use the plugin
directory many users are likely calling it twice, once from plugin
and again when configuring. To avoid showing old marks which may not
match the configuration the invalidation logic was added. This is an
unlikely edge case and was really only necessary for some of the unit
tests to continue functioning.1 parent 67bdd9b commit 51eec4e
File tree
13 files changed
+30
-16
lines changed- demo
- doc
- lua/render-markdown
13 files changed
+30
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 36 | | |
44 | 37 | | |
45 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | | - | |
0 commit comments