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

Hide Flutter dev log from buffers list. #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lua/flutter-tools/log.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function M.__resurrect()
vim.bo[buf].modifiable = false
vim.bo[buf].modified = false
vim.bo[buf].buftype = "nofile"
vim.bo[buf].buflisted = false
end

function M.clear()
Expand Down
2 changes: 1 addition & 1 deletion lua/flutter-tools/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function M.buf_valid(bufnr, name)
if bufnr then
return api.nvim_buf_is_loaded(bufnr)
end
return vim.fn.bufexists(target) > 0 and vim.fn.buflisted(target) > 0
return vim.fn.bufexists(target) > 0
end

---Add a function to the global callback map
Expand Down