mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 04:21:08 +00:00
Merge 86d9d93e31 into 459a4c3b10
This commit is contained in:
commit
cb15758c14
1 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,9 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||
callback = function(event)
|
||||
vim.bo[event.buf].buflisted = false
|
||||
vim.schedule(function()
|
||||
if not vim.api.nvim_buf_is_valid(event.buf) then
|
||||
return
|
||||
end
|
||||
vim.keymap.set("n", "q", function()
|
||||
vim.cmd("close")
|
||||
pcall(vim.api.nvim_buf_delete, event.buf, { force = true })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue