Skip to content

Commit 8ac4e67

Browse files
committed
Make obsidian.lua handle empty workspace env var
1 parent 88adc83 commit 8ac4e67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/nvim/lua/kern/plugins/obisidian.lua

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ for pair in str:gmatch("([^;]+)") do
66
table.insert(obsidian_workspaces, { name = name, path = path })
77
end
88

9+
if str == "" then
10+
return {}
11+
end
12+
913
return {
1014
"epwalsh/obsidian.nvim",
1115
version = "*", -- recommended, use latest release instead of latest commit

0 commit comments

Comments
 (0)