⚡ batch (sadly)
This commit is contained in:
@@ -1,3 +1,37 @@
|
||||
vim9script
|
||||
|
||||
unlet b:current_syntax
|
||||
syntax include @Yaml syntax/yaml.vim
|
||||
syntax region yamlFrontmatter start=/\%^---$/ end=/^---$/ keepend contains=@Yaml
|
||||
|
||||
# MarkdownLinkConceal ----------------------------------------------------{{{1
|
||||
execute
|
||||
\ 'syntax region markdownLink matchgroup=markdownLinkDelimiter ' ..
|
||||
\ 'start="(" end=")" contains=markdownUrl keepend contained conceal'
|
||||
execute
|
||||
\ 'syntax region markdownLinkText matchgroup=markdownLinkTextDelimiter ' ..
|
||||
\ 'start="!\=\[\%(\_[^][]*\%(\[\_[^][]*\]\_[^][]*\)*]\%([[(]\)\)\@=" ' ..
|
||||
\ 'end="\]\%([[(]\)\@=" nextgroup=markdownLink,markdownId skipwhite ' ..
|
||||
\ 'contains=@markdownInline,markdownLineStart concealends'
|
||||
|
||||
# Checkbox Syntax Fix ----------------------------------------------------{{{1
|
||||
# Correct the checkbox syntax highlighting issue from
|
||||
# fix: https://github.com/tpope/vim-markdown/issues/212
|
||||
|
||||
# Allow user to customize checkbox symbols, default: [ ] [.] [o] [O] [x] [X] [-]
|
||||
g:markdown_checkbox_symbols = get(g:, 'markdown_checkbox_symbols', ' .oOxX-')
|
||||
|
||||
# Build regex pattern for list item + checkbox
|
||||
var list_pat = '\%(\d\+\.\|[aAiI]\.\|[*+-]\)'
|
||||
var checkbox_chars = escape(g:markdown_checkbox_symbols, '^-[]')
|
||||
var checkbox_pat = '^\s*' .. list_pat .. '\s*\[[' .. checkbox_chars .. ']\]'
|
||||
|
||||
# Define checkbox syntax group
|
||||
execute('syn match markdownTodo "' .. checkbox_pat .. '" contains=markdownTodoDone')
|
||||
|
||||
# Match the symbol inside the checkbox
|
||||
execute('syn match markdownTodoDone "[' .. checkbox_chars .. ']" containedin=markdownTodo contained')
|
||||
|
||||
# Optional: highlight style (comment out to use theme default)
|
||||
hi def link markdownTodo markdownListMarker
|
||||
hi def link markdownTodoDone markdownBold
|
||||
|
@@ -13,7 +13,8 @@
|
||||
"html.autoCreateQuotes": false,
|
||||
"javascript.preferences.quoteStyle": "double",
|
||||
"javascript.preferences.importModuleSpecifierEnding": "js",
|
||||
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
|
||||
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
|
||||
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
|
||||
"___eslint.options": {
|
||||
"overrideConfig":{
|
||||
"extends": [
|
||||
|
@@ -46,7 +46,7 @@ let g:user_tips_list= [
|
||||
\ ':lhistory :lolder :lnewer',
|
||||
\ ':[m]ove :[co]py (:t) :p :#',
|
||||
\ ':help i_CTRL-<tab> … i_CTRL-Y … i<c-u>',
|
||||
\ '*grep onchange -r . --include=*.\{js,md\} …or http://jdem.cz/fgytv8',
|
||||
\ '*grep onchange -r . --include=*.\{js,md\}',
|
||||
\ '%bdelete|edit #|normal `"',
|
||||
\ ':diffget :diffput c] [c',
|
||||
\ ':chistory :colder :cnewer',
|
||||
|
Reference in New Issue
Block a user