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

fix(autocmd): remove query from q-to-quit autocmd #473

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

amaanq
Copy link
Contributor

@amaanq amaanq commented Mar 22, 2023

Query files aren't just the special window to edit/inspect tree-sitter queries, but also any file in queries/**.scm is considered one. I noticed this bug persisting for a while probably via an autocmd where switching buffers then going back would have the file removed from my bufferline at the top.

You can reproduce this by cloning any tree-sitter parser and fiddling around with a queries file, then swapping buffers or going back to a query buffer, it sort-of becomes in this weird stuck state (well when using the keybinds I'm familiar with navigation at least), and I have to close and reopen the buffer to fix it.

Thanks!

@folke
Copy link
Collaborator

folke commented Mar 22, 2023

ok, cool thanks. Makes sense

@folke folke merged commit b0cef1f into LazyVim:main Mar 22, 2023
ofrades pushed a commit to ofrades/LazyVim that referenced this pull request May 30, 2023
@amaanq amaanq deleted the fix-query branch June 30, 2023 07:39
joshmedeski pushed a commit to joshmedeski/LazyVim that referenced this pull request Sep 1, 2023
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 this pull request may close these issues.

None yet

2 participants