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

Show on start doesn't work for the first file opened when opened by telescope #41

Closed
dane-harnett opened this issue Jan 8, 2023 · 1 comment · Fixed by #42
Closed

Comments

@dane-harnett
Copy link
Contributor

I use https://github.com/nvim-telescope/telescope.nvim for fuzzy file finding.

My nvim-biscuits config is:

require('nvim-biscuits').setup({
    cursor_line_only = true,
})

After opening neovim, I immediately open the fuzzy finder for telescope and select a file (I've tried *.ts and *.tsx and both are affected) - the biscuits are not displayed.

If I open another file using telescope then the biscuits show as expected.

I did some debugging and found that the lang was being determined to be "" when retrieve from ts_parsers.

Happy to provide more info or a video if needed.

@dane-harnett
Copy link
Contributor Author

dane-harnett commented Jan 8, 2023

I have a suspicion that biscuits is trying to attach to the buffer too early and the treesitter language is not yet determined.

There looks like there is an official way to add modules to treesitter: https://github.com/nvim-treesitter/nvim-treesitter#adding-modules

Which might allow for not doing the BufEnter autocmd technique.

I'll explore this and report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant