mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
feat(images): added support for org-mode. Closes #1276
This commit is contained in:
parent
76f5ee4a1b
commit
10387af009
2 changed files with 6 additions and 0 deletions
5
queries/org/images.scm
Normal file
5
queries/org/images.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(
|
||||
(expr) @image.src
|
||||
(#match? @image.src "^\\[\\[(file:)?.*(png|jpg)\\]\\]$")
|
||||
(#offset! @image.src 0 2 0 -2)
|
||||
)
|
||||
1
tests/image/test.org
Normal file
1
tests/image/test.org
Normal file
|
|
@ -0,0 +1 @@
|
|||
[[test.png]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue