mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(scratch): hide buffer after formatting when close (#1523)
## Description When you format code in scratch, the scratch buffer will be opened in bufferline. The buffer will not disappear even after the scratch window is closed. ## Related Issue(s) ## Screenshots   
This commit is contained in:
parent
ba90011a14
commit
4379085616
1 changed files with 1 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ function M.open(opts)
|
|||
callback = function(ev)
|
||||
vim.api.nvim_buf_call(ev.buf, function()
|
||||
vim.cmd("silent! write")
|
||||
vim.bo[ev.buf].buflisted = false
|
||||
end)
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue