mirror of
https://github.com/Ascyii/typstar.git
synced 2026-01-01 05:24:24 -05:00
feat: insert & open obsidian excalidraw drawings
This commit is contained in:
21
lua/typstar/config.lua
Normal file
21
lua/typstar/config.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
local M = {}
|
||||
|
||||
local default_config = {
|
||||
typstarRoot = '~/typstar',
|
||||
excalidraw = {
|
||||
assetsDir = 'assets',
|
||||
filename = 'drawing-%Y-%m-%d-%H-%M-%S',
|
||||
fileExtensionInserted = '.excalidraw.svg',
|
||||
obsidianOpenConfig = nil,
|
||||
}
|
||||
}
|
||||
|
||||
function M.merge_config(args)
|
||||
M.config = vim.tbl_deep_extend('force', default_config, args or {})
|
||||
M.config.excalidraw.obsidianOpenConfig = M.config.excalidraw.obsidianOpenConfig or
|
||||
M.config.typstarRoot .. '/res/obsidian_open_config_example.json'
|
||||
end
|
||||
|
||||
M.merge_config(nil)
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user