From 3a64e050b9fd694ae9772eaa76b91a9db1010fcf Mon Sep 17 00:00:00 2001 From: Gregory Leeman Date: Tue, 29 Mar 2022 23:44:16 +0100 Subject: [PATCH] lazygit 2022-03-29 23:44 --- plugin/notecrate.vim | 4 ++-- syntax/notecrate.vim | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/notecrate.vim b/plugin/notecrate.vim index e73dd07..c4ae632 100644 --- a/plugin/notecrate.vim +++ b/plugin/notecrate.vim @@ -4,6 +4,6 @@ if !exists("g:notecrate_dirs") \ } endif for [key, value] in items(g:notecrate_dirs) - execute "autocmd BufRead,BufNewFile " . value["dir"] . "/*.md set filetype=notecrate syntax=notecrate" - execute "normal! :nnoremap w" . value["prefix"] . " :e " . value["dir"] . "/index.md:let b:notecrate_dir = \"" . value["dir"] . "\":let b:notecrate_history = []\" + silent execute "autocmd BufRead,BufNewFile " . value["dir"] . "/*.md set filetype=notecrate syntax=notecrate" + silent execute "normal! :nnoremap w" . value["prefix"] . " :e " . value["dir"] . "/index.md:let b:notecrate_dir = \"" . value["dir"] . "\":let b:notecrate_history = []\" endfor diff --git a/syntax/notecrate.vim b/syntax/notecrate.vim index 4263066..40b0f92 100644 --- a/syntax/notecrate.vim +++ b/syntax/notecrate.vim @@ -8,8 +8,8 @@ setlocal nowrap syn match NotecrateLinkInternal /\(\](\)\@<=[^()]*\()\)\@=/ hi def link NotecrateLinkInternal orangeu -" syn match NotecrateBoldConceal /\*\*/ containedin=ALL -syn match NotecrateBoldConceal /\*\*/ conceal containedin=ALL +syn match NotecrateBoldConceal /\*\*/ containedin=ALL +" syn match NotecrateBoldConceal /\*\*/ conceal containedin=ALL syn match NotecrateLinkConceal /!*\[\+\([^\]]*](\)\@=/ conceal syn match NotecrateLinkConceal /\]\+\((\)\@=/ conceal