Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- source: https://pastebin.com/7ZBeSgSy
- -- reddit: https://www.reddit.com/r/neovim/comments/nu8e0t/
- -- Enable conceallevel on neovim:
- -- in your ~/.config/nvim/after/ftplugin/markdown.lua
- vim.wo.conceallevel = 2
- vim.cmd([[syn region markdownLink matchgroup=markdownLinkDelimiter start="(" end=")" contains=markdownUrl keepend contained conceal]])
- vim.cmd([[syn region markdownLinkText matchgroup=markdownLinkTextDelimiter start="!\=\[\%(\%(\_[^][]\|\[\_[^][]*\]\)*]\%( \=[[(]\)\)\@=" end="\]\%( \=[[(]\)\@=" nextgroup=markdownLink,markdownId skipwhite contains=@markdownInline,markdownLineStart concealends]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement