diff --git a/README.md b/README.md index d27a341..e98c006 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ require('telekasten').setup({ -- image link style -- wiki: ![[image name]] -- markdown: ![](image_subdir/xxxxx.png) - image_link_style = "wiki", + image_link_style = "markdown", -- integrate with calendar-vim plug_into_calendar = true, @@ -128,7 +128,7 @@ END | `templates` | path where your note templates go | ~/zettelkasten/templates | | `image_subdir` | sub-directory where pasted images should go | img | | | set to nil if pasted images shouldn't go into a special subdir | img | -| `image_link_style` | style of img links inserted when pasting images from clipboard | wiki | +| `image_link_style` | style of img links inserted when pasting images from clipboard | markdown | | | `markdown` ... `![](image_subdir/xxxxx.png)` | | | | `wiki` ... `![[image name]]` | | | `extension` | filename extension of your note files | .md | diff --git a/doc/telekasten.txt b/doc/telekasten.txt index bff8322..b4cc88c 100644 --- a/doc/telekasten.txt +++ b/doc/telekasten.txt @@ -144,7 +144,7 @@ telekasten.setup({opts}) Sub-directory where pasted images should go to. Set to `nil` if images should not go into a sub-directory. - Default: 'img' + Default: `nil` *telekasten.settings.image_link_style* image_link_style: ~ @@ -154,7 +154,7 @@ telekasten.setup({opts}) - 'wiki' .. places links like this: `![[image_name]]` - 'markdown' .. `![](image_subdir/image_name)` - Default: 'wiki' + Default: 'markdown' *telekasten.settings.follow_create_nonexisting* follow_creates_nonexisting: ~ diff --git a/lua/telekasten.lua b/lua/telekasten.lua index fb2f844..796aadb 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -23,7 +23,7 @@ local ZkCfg = { -- image subdir for pasting -- subdir name -- or nil if pasted images shouldn't go into a special subdir - image_subdir = "img", + image_subdir = nil, -- markdown file extension extension = ".md", @@ -41,7 +41,7 @@ local ZkCfg = { -- image link style -- wiki: ![[image name]] -- markdown: ![](image_subdir/xxxxx.png) - image_link_style = "wiki", + image_link_style = "markdown", -- integrate with calendar-vim plug_into_calendar = true, @@ -642,6 +642,8 @@ local Setup = function(cfg) or "left-fit" SetupCalendar(ZkCfg.calendar_opts) end + print(vim.inspect(cfg)) + print(vim.inspect(ZkCfg)) end local M = {