Make sure that we don't try and load obsidian when we aren't connected
to the local network with the obsidian server
This commit is contained in:
parent
2464375e1d
commit
7c45912194
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,12 @@ return {
|
|||
local scndbrn_path = vim.fn.has("unixmac") == 1 and
|
||||
"~/rp4-data/obsidian-vault/scndbrn" or
|
||||
"/mnt/rp4-data/obsidian-vault/scndbrn"
|
||||
|
||||
local is_vault_accessible = scndbrn_path == nil or vim.fn.isdirectory(scndbrn_path) == 0
|
||||
if is_vault_accessible then
|
||||
return
|
||||
end
|
||||
|
||||
require("obsidian").setup({
|
||||
workspaces = {
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue