epwalsh / epwalsh/obsidian.nvim
No picker preview for "ObsidianDailies" when using fzf-lua
- Dominant language
- Lua
- Stars
- 6.2k
- Forks
- 250
- PR merge metrics
- No merged PRs in 30d
Description
### 🐛 Describe the bug
When I had Telescope as my picker and used the command ObsidianDailies the picker showed the file previews but since I switched to fzf-lua the picker for just this command stopped showing. Previews for other commands like "ObsidianQuickSwitch" do work for fzf-lua.
### Config
```
workspaces = {
{
name = "notes",
-- path = "~/mega/obsidian/notes",
-- path = os.getenv("HOME") or os.getenv("USERPROFILE") .. "/mega/obsidian/notes",
path = "~/mega/obsidian/notes",
},
},
-- completion = {
-- new_notes_location = "notes_subdir",
-- },
new_notes_location = "notes_subdir",
note_id_func = function(title)
local suffix = ""
if title ~= nil then
-- If title is given, transform it into valid file name.
suffix = title
else
-- If title is nil, just add 4 random uppercase letters to the suffix.
for _ = 1, 4 do
suffix = tostring(os.time())
end
end
return suffix
end,
-- Optional, customize the default name or prefix when pasting images via `:ObsidianPasteImg`.
image_name_func = function()
-- Prefix image names with timestamp.
return tostring(os.time())
end,
mappings = {
-- Overrides the 'gf' mapping to work on markdown/wiki links within your vault.
-- ["gf"] = {
-- action = function()
-- return require("obsidian").util.gf_passthrough()
-- end,
-- opts = { noremap = false, expr = true, buffer = true },
-- },
-- Toggle check-boxes.
["ol"] = {
action = function()
return require("obsidian").util.toggle_checkbox()
end,
opts = { buffer = true },
},
[""] = {
action = function()
return require("obsidian").util.smart_action()
end,
opts = { buffer = true, expr = true },
},
},
disable_frontmatter = true,
```
### Environment
```
NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1731601260
Run "nvim -V1 -v" for more info
fzf-lua fatal: '_G._fzf_lua_server', '_G._devicons_path' both nil
fzf-lua fatal: '_G._fzf_lua_server', '_G._devicons_path' both nil
Obsidian.nvim v3.9.0 (14e0427bef6c55da0d63f9a313fd9941be3a2479)
Status:
• buffer directory: nil
• working directory: /home/hector
Workspaces:
✓ active workspace: Workspace(name='notes', path='/home/hector/mega/obsidian/notes', root='/home/hector/mega/obsidian/notes')
Dependencies:
✓ plenary.nvim: 2d9b06177a975543726ce5c73fca176cedbffe9d
Integrations:
✓ picker: nil
✗ completion: disabled
Tools:
✓ rg: ripgrep 14.1.1
Environment:
• operating system: Linux
Config:
• notes_subdir: nil
```
Contributor guide
Research direction
Reproduce `:ObsidianDailies` with fzf-lua and compare its picker path with `:ObsidianQuickSwitch`, whose previews work. Inspect the fzf-lua integration around the reported `_G._fzf_lua_server` and `_G._devicons_path` errors; done means ObsidianDailies displays file previews under fzf-lua.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100