diff options
| author | Jonathan Lopez <jonathanglopez@gmail.com> | 2022-06-09 10:32:05 -0400 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-06-22 13:56:11 +0200 |
| commit | 778bfc337a010a5276b4736174c7c544b70236b5 (patch) | |
| tree | 9d901f75b3518917059a33fe0315b6210657d68f | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-778bfc337a010a5276b4736174c7c544b70236b5.tar nvim-treesitter-778bfc337a010a5276b4736174c7c544b70236b5.tar.gz nvim-treesitter-778bfc337a010a5276b4736174c7c544b70236b5.tar.bz2 nvim-treesitter-778bfc337a010a5276b4736174c7c544b70236b5.tar.lz nvim-treesitter-778bfc337a010a5276b4736174c7c544b70236b5.tar.xz nvim-treesitter-778bfc337a010a5276b4736174c7c544b70236b5.tar.zst nvim-treesitter-778bfc337a010a5276b4736174c7c544b70236b5.zip | |
Conceal markdown links
| -rw-r--r-- | queries/markdown/highlights.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm index 977f0f28a..b7b75b350 100644 --- a/queries/markdown/highlights.scm +++ b/queries/markdown/highlights.scm @@ -88,3 +88,25 @@ (inline_link "[" @conceal (#set! conceal "")) + +;; Conceal @text.uri preceding '(' +([ + (link_label) + (link_text) + (image_description) +] ["("] @conceal +(#set! conceal "")) + +;; Conceal @text.uri text +([ + (link_destination) + (uri_autolink) +] @conceal +(#set! conceal "")) + +;; Conceal @text.uri proceding '(' +([ + (link_destination) + (uri_autolink) +] [")"] @conceal +(#set! conceal "")) |
