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

Bug: No matching autocommands: filetypedetect BufRead #1166

Closed
3 of 6 tasks
homerours opened this issue Apr 30, 2024 · 3 comments
Closed
3 of 6 tasks

Bug: No matching autocommands: filetypedetect BufRead #1166

homerours opened this issue Apr 30, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@homerours
Copy link

RTFM Checklist

  • I have searched exisiting issues / discussions
  • I have read the Wiki including the Advanced section
  • I have read man fzf / I am well versed in shell fzf

Operating system

Linux

Shell

zsh

Neovim version (nvim --version)

0.9.5

Fzf version (fzf --version)

0.48.0

Output of :lua print(os.getenv('FZF_DEFAULT_OPTS'))

nil

Is the problem reproducible with mini.sh?

  • My issue is reproducible with mini.sh
  • My issue IS NOT reproducible with mini.sh
  • I have not tested with mini.sh (not relevant, requires LSP, Windows, etc)

Fzf-lua configuration

require('fzf-lua').setup({
})

Describe the bug / steps to reproduce

Hello,
First of all, thank you for maintaining this wonderful plugin !
I am experiencing some issues using fzf_live. When running

:lua require('fzf-lua').fzf_live(function(q) return {"hello"} end, {exec_empty_query = true})  

fzf-lua opens its usual search window, with an entry "hello" (as expected), but with an error

No matching autocommands: filetypedetect BufRead

right below. Am I doing something wrong here? Thank you!

@homerours homerours added the bug Something isn't working label Apr 30, 2024
@homerours homerours changed the title Bug: Bug: No matching autocommands: filetypedetect BufRead Apr 30, 2024
@ibhagwan
Copy link
Owner

This seems to be an upstream ussue when using vim.g.did_load_filetypes=1 on load, using 0.9.5 I am getting the same warning as you but with the latest nightly it works as expected.

I modified 5104ac1 introduced by #1089 to be included only when neovim >= v0.10.

With cb208cd, it should work as expected, lmk if otherwise.

@homerours
Copy link
Author

Thank you very much, your commit fixed it 🎉

@ibhagwan
Copy link
Owner

Thank you very much, your commit fixed it 🎉

Ty for the update and the kind words @homerours!

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

2 participants