fix(autocmd): remove query from q-to-quit autocmd #473
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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!