From 8543c689b07f56ef3c6ad64bbbface9d75f95367 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Fri, 30 Jun 2023 14:31:01 +0200 Subject: [PATCH] mkdnflow: adapt follow link behavior - Sets the `perspective.priority` to `current` to get the follow link feature behaves as I need, relative to the current buffer. - Fixes the new file template to avoid a blank column at the begining (results in an invalid YAML syntax). Co-Authored-by: iGor milhit --- lua/custom/plugins/mkdnflow.lua | 16 ++++++++++------ spell/en.utf-8.add | 1 + spell/en.utf-8.add.spl | Bin 254 -> 291 bytes 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lua/custom/plugins/mkdnflow.lua b/lua/custom/plugins/mkdnflow.lua index e965d83..4531df8 100644 --- a/lua/custom/plugins/mkdnflow.lua +++ b/lua/custom/plugins/mkdnflow.lua @@ -22,18 +22,22 @@ return { markdown = true, pandoc = true }, + perspective = { + -- Ensure that paths are relative to the current file + priority = "current" + }, links = { conceal = true, }, new_file_template = { use_template = true, template = [[ - --- - title: - date: {{ date }} - id: {{ id }} - tags: [] - --- +--- +title: +date: {{ date }} +id: {{ id }} +tags: [] +--- ]], placeholders = { before = { diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index b1182d4..be24260 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -8,3 +8,4 @@ InfoBiblio Réaménagement biodiversité hyperindustrialisés +lacto-fermentation diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 4add06e8a1d111fc8e6128e9988da4b8b25ed181..ca7a2bbc6543f3143ac6379e72c70601a512f401 100644 GIT binary patch delta 65 zcmeyzxR{AA%+t5HAT=k)=syDk!?}rkP3laErHsjpC5-uux{PUzsfHq)$