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 <igor.milhit@unige.ch>
iGor milhit 2023-06-30 14:31:01 +02:00
parent 0f0b1ee56a
commit 1585f558ba
Signed by: igor
GPG Key ID: 692D97C3D0228A99
3 changed files with 11 additions and 6 deletions

View File

@ -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 = {

View File

@ -8,3 +8,4 @@ InfoBiblio
Réaménagement
biodiversité
hyperindustrialisés
lacto-fermentation

Binary file not shown.