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

Buffer being created for every :w being executed #280

Open
idelice opened this issue Oct 27, 2024 · 1 comment
Open

Buffer being created for every :w being executed #280

idelice opened this issue Oct 27, 2024 · 1 comment

Comments

@idelice
Copy link

idelice commented Oct 27, 2024

After executing query with :w (which i suppose how it's done after watching TJ's video), a new buffer is being created and showed in the tab bar (bufferline.nvim).

Screenshot 2024-10-27 at 10 41 57

Is this intended behaviour? If so, i would like to disable it somehow as it makes my bufferline go crazy if i have executed a handful of queries..

@kristijanhusak
Copy link
Owner

Every query execution creates a new output file in the temporary folder. That's just how vim-dadbod works in the background. Additionally, this allows viewing the output of previous runs.

I'm assuming bufferline does not show the buffers that are not considered as listed, so you can add this to your vimrc to make them go away:

autocmd FileType dbout setlocal nobuflisted

Or just create a custom filter on bufferline line in the docs https://github.com/akinsho/bufferline.nvim/blob/main/doc/bufferline.txt#L110

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

No branches or pull requests

2 participants