Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wwingyou opened this issue Nov 21, 2024 · 0 comments
Open

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

wwingyou opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wwingyou
Copy link

🐛 Describe the bug

I setted up telescope-fzf-native.nvim 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

-- obsidian-nvim.lua
return {
  'epwalsh/obsidian.nvim',
  version = '*',  -- recommended, use latest release instead of latest commit
  lazy = true,
  ft = 'markdown',
  keys = {
    { '<leader>fn', '<cmd>ObsidianSearch<CR>', mode = 'n', desc = 'search obsidian' },
    { '<leader>cc', '<cmd>ObsidianNew<CR>', mode = 'n', desc = 'create obsidian capture note' },
    { '<leader>ct', '<cmd>ObsidianToday<CR>', mode = 'n', desc = 'create obsidian today note' },
    { 'gf', '<cmd>ObsidianFollowLink<CR>', mode = 'n', desc = 'obsidian follow link' },
  },
  dependencies = {
    -- Required.
    'nvim-lua/plenary.nvim',
    'hrsh7th/nvim-cmp',
    'nvim-telescope/telescope.nvim',
    'nvim-treesitter',
  },
  opts = {
    -- ...
  },
}
-- 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
@wwingyou wwingyou added the bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant