epwalsh / epwalsh/obsidian.nvim

telescope-fzf-native.nvim seems not working with :ObsidianSearch

Open
#775 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Lua
Stars
6.2k
Forks
250
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Describe the bug

I setted up [telescope-fzf-native.nvim](https://github.com/nvim-telescope/telescope-fzf-native.nvim?tab=readme-ov-file#telescope-fzf-nativenvim) plugin in telescope but can't use fzf syntax in :ObsidianSearch while directly calling telescope api (e.g. `builtin.find_files()`, `builtin.live_grep()`) works as I expected. Is there any other configuration to do?

### Config

```lua
-- obsidian-nvim.lua
return {
'epwalsh/obsidian.nvim',
version = '*', -- recommended, use latest release instead of latest commit
lazy = true,
ft = 'markdown',
keys = {
{ 'fn', 'ObsidianSearch', mode = 'n', desc = 'search obsidian' },
{ 'cc', 'ObsidianNew', mode = 'n', desc = 'create obsidian capture note' },
{ 'ct', 'ObsidianToday', mode = 'n', desc = 'create obsidian today note' },
{ 'gf', 'ObsidianFollowLink', mode = 'n', desc = 'obsidian follow link' },
},
dependencies = {
-- Required.
'nvim-lua/plenary.nvim',
'hrsh7th/nvim-cmp',
'nvim-telescope/telescope.nvim',
'nvim-treesitter',
},
opts = {
-- ...
},
}
```

```lua
-- telescope.lua
return {
'nvim-telescope/telescope.nvim',
tag = '0.1.8',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons',
'nvim-treesitter/nvim-treesitter',
'nvim-telescope/telescope-ui-select.nvim',
},
config = function()
require'telescope'.setup {
defaults = {
-- ...
},
extensions = {
fzf = {
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
-- the default case_mode is "smart_case"
},
},
-- file_ignore_patterns = { "%.class" }
}
require'telescope'.load_extension('ui-select')
require'telescope'.load_extension('fzf')
end
}

```

### Environment

```
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1724512491
Run "nvim -V1 -v" for more info
Obsidian.nvim v3.9.0 (ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b)
Status:
• buffer directory: nil
• working directory: /Users/dogchew/.local/share/nvim/mason
Workspaces:
✓ active workspace: Workspace(name='notes', path='/Users/dogchew/Library/Mobile Documents/iCloud~md~obsidian/Documents/Notes', root='/Users/dogchew/Library/Mobile Documents/iCloud~md~obsidian/Documents/Notes')
Dependencies:
✓ plenary.nvim: 2d9b06177a975543726ce5c73fca176cedbffe9d
✓ nvim-cmp: 40a03dc225383c4f6256596c2cdf27e03b8119b5
✓ telescope.nvim: a0bbec21143c7bc5f8bb02e0005fa0b982edc026
Integrations:
✓ picker: TelescopePicker()
✓ completion: enabled (nvim-cmp) ✗ refs, ✗ tags, ✗ new
all sources:
• nvim_lsp
• luasnip
• buffer
• lazydev
Tools:
✓ rg: ripgrep 14.0.3
Environment:
• operating system: Darwin
Config:
• notes_subdir: Inbox
```

Contributor guide

Open the contributing guide

Research direction

Start with the obsidian-nvim.lua and telescope.lua configurations, then compare :ObsidianSearch with direct Telescope calls using the TelescopePicker integration shown in the status output. Reproduce the behavior with telescope-fzf-native.nvim enabled; done means the search command honors the configured fzf behavior or clearly identifies the required configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.