Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ local bridge_settings = {
scroll_sync = false, -- See "Sync of buffer scrolling" section below
cert_path = nil, -- See "SSL configuration" section below
warnings = true, -- Show misconfiguration warnings
picker = "telescope", -- Picker to use with ObsidianBridgePickCommand ("telescope" | "fzf_lua")
picker = "telescope", -- Picker to use with ObsidianBridgePickCommand ("telescope" | "fzf_lua" | "snacks")
}

-- If you are using lazy in your config,
Expand Down
14 changes: 14 additions & 0 deletions lua/obsidian-bridge/network.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,20 @@ M.pickers = {
fzf_lua.fzf_exec(vim.tbl_keys(command_name_id_map), opts)
end,
},
snacks = {
requires = "snacks",
display_name = "snacks.nvim",
pick = function(command_name_id_map, cb)
local items = vim.tbl_keys(command_name_id_map)
Snacks.picker.select(items, {
Prompt = "Obsidian Commands",
}, function(selected)
if selected then
cb(command_name_id_map[selected])
end
end)
end,
},
}

M.pick_command = function(final_config, api_key)
Expand Down