mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
more sane defaults for pasted images
This commit is contained in:
@@ -105,7 +105,7 @@ require('telekasten').setup({
|
||||
-- image link style
|
||||
-- wiki: ![[image name]]
|
||||
-- markdown: 
|
||||
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` ... `` | |
|
||||
| | `wiki` ... `![[image name]]` | |
|
||||
| `extension` | filename extension of your note files | .md |
|
||||
|
||||
@@ -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' .. ``
|
||||
|
||||
Default: 'wiki'
|
||||
Default: 'markdown'
|
||||
|
||||
*telekasten.settings.follow_create_nonexisting*
|
||||
follow_creates_nonexisting: ~
|
||||
|
||||
@@ -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_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 = {
|
||||
|
||||
Reference in New Issue
Block a user