You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure the best way to report this / ask the question but thought it would be easiest to link to the lines of code. The problem is that nvim-cmp completions are slow for me to load (take 2 seconds each time I trigger a completion with “[[…” for linking to notes.
I traced it down to the search.search_async() call (see below) which got me to thinking, why is [[note linking]] searching the content of all files in my vault?
As you can see below, it first runs the search.search_ansync() and then runs the search.find_async() below it.
When I comment out the search.search_async() (and add one to the cmd counter) everything works as expected and I can [[link to notes…]] quickly and without any delay/pause.
Is this expected to be searching content of notes every time even though I am just trying to link to note names?
🐛 Describe the bug
Not sure the best way to report this / ask the question but thought it would be easiest to link to the lines of code. The problem is that nvim-cmp completions are slow for me to load (take 2 seconds each time I trigger a completion with “[[…” for linking to notes.
I traced it down to the search.search_async() call (see below) which got me to thinking, why is [[note linking]] searching the content of all files in my vault?
As you can see below, it first runs the search.search_ansync() and then runs the search.find_async() below it.
When I comment out the search.search_async() (and add one to the cmd counter) everything works as expected and I can [[link to notes…]] quickly and without any delay/pause.
Is this expected to be searching content of notes every time even though I am just trying to link to note names?
obsidian.nvim/lua/cmp_obsidian.lua
Line 302 in 14e0427
obsidian.nvim/lua/obsidian/client.lua
Line 463 in 14e0427
obsidian.nvim/lua/obsidian/client.lua
Line 470 in 14e0427
obsidian.nvim/lua/obsidian/client.lua
Line 388 in 14e0427
obsidian.nvim/lua/obsidian/client.lua
Line 416 in 14e0427
obsidian.nvim/lua/obsidian/client.lua
Line 424 in 14e0427
Config
Using defaults…
Environment
nvim stable v0.10 (reporting on my phone right now… can provide later if needed but it should be N/A to my reported issue)
The text was updated successfully, but these errors were encountered: