Skip to content

Commit

Permalink
fix: not setting workspace in new_from_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
weskoerber committed Aug 4, 2023
1 parent 46c1eaa commit bc6b82b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/obsidian/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ end
---@return obsidian.Client
obsidian.new_from_dir = function(dir)
local opts = config.ClientOpts.default()
vim.tbl_extend("force", opts.workspaces, { vim.fs.normalize(dir) })
opts.workspaces = vim.tbl_extend("force", opts.workspaces, { test_vault = vim.fs.normalize(dir) })
opts.default_workspace = "test_vault"
return obsidian.new(opts)
end

Expand Down

0 comments on commit bc6b82b

Please sign in to comment.