From 845080faa6ac8adabdf822fc1df924cdb6834af8 Mon Sep 17 00:00:00 2001 From: Gregory Leeman Date: Sun, 3 Apr 2022 12:33:39 +0100 Subject: [PATCH] lazygit 2022-04-03 12:33 --- autoload/notecrate.vim | 2 +- ftplugin/notecrate.vim | 2 +- syntax/notecrate.vim | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/autoload/notecrate.vim b/autoload/notecrate.vim index 6ad8ee7..0e97e14 100644 --- a/autoload/notecrate.vim +++ b/autoload/notecrate.vim @@ -295,7 +295,7 @@ function! notecrate#update_backlinks() " {{{ if len(l:links) == 0 let l:backlinks = l:backlinks . "* [Index](index.md)" else - let l:backlinks = l:backlinks . join(uniq(l:links), "\n") . "\n\n* [Index](index.md)" + let l:backlinks = l:backlinks . join(uniq(l:links), "\n") . "\n* [Index](index.md)" endif call setreg("l", l:backlinks) silent execute "normal! /^---\vG$\"lp" diff --git a/ftplugin/notecrate.vim b/ftplugin/notecrate.vim index 34eec70..69d6676 100644 --- a/ftplugin/notecrate.vim +++ b/ftplugin/notecrate.vim @@ -2,7 +2,7 @@ setlocal textwidth=79 setlocal autowriteall setlocal comments+=b:* setlocal foldlevel=3 -setlocal formatoptions=cro +" setlocal formatoptions=cro command -nargs=1 Rename call notecrate#rename_note() diff --git a/syntax/notecrate.vim b/syntax/notecrate.vim index 40b0f92..c8b1dc9 100644 --- a/syntax/notecrate.vim +++ b/syntax/notecrate.vim @@ -2,14 +2,13 @@ setlocal foldmethod=expr setlocal foldexpr=notecrate#nested_markdown_folds(v:lnum) setlocal foldtext=notecrate#fold_text() setlocal conceallevel=2 -set comments=b:* -setlocal nowrap +setlocal wrap 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