Skip to content

Commit b96da4b

Browse files
committed
fix: do-not load obsidian at startup
1 parent ff7546b commit b96da4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lua/ht/plugins/edit/obsidian.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ M.lazy.config = function()
9595
alias_format = "%B %-d, %Y",
9696
template = "Templates.nvim/daily-note.md",
9797
},
98+
new_notes_location = "notes_subdir",
9899
completion = {
99100
nvim_cmp = true,
100-
new_notes_location = "notes_subdir",
101101
},
102102
templates = {
103103
subdir = "0-Assets",

lua/telescope/_extensions/obsidian.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
local Globals = require("ht.core.globals")
22
local entry_display = require("telescope.pickers.entry_display")
3-
local obsidian = require("obsidian")
43
local pickers = require("telescope.pickers")
54
local conf = require("telescope.config").values
65
local actions = require("telescope.actions")
@@ -10,7 +9,6 @@ local finders = require("telescope.finders")
109
local extra_obsidian = require("ht.extra.obsidian")
1110
local Tbl = require("ht.utils.table")
1211
local hv = require("ht.vim")
13-
assert(obsidian ~= nil)
1412

1513
local note_path_blacklist_pattern = {
1614
"1-Inputs/Weread",
@@ -152,7 +150,9 @@ local function find_notes(opts, notes)
152150
local entry = action_state.get_selected_entry()
153151
actions.close(bufnr)
154152
if entry ~= nil then
155-
vim.cmd(("e %s/%s"):format(Globals.obsidian_vault, entry.value.value.path))
153+
vim.cmd(
154+
("e %s/%s"):format(Globals.obsidian_vault, entry.value.value.path)
155+
)
156156
end
157157
end)
158158
return true

0 commit comments

Comments
 (0)