mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(autocmds): force close buffers with q. See #4638
This commit is contained in:
parent
5f432d997e
commit
0eb400908d
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||
callback = function(event)
|
||||
vim.bo[event.buf].buflisted = false
|
||||
vim.schedule(function()
|
||||
vim.keymap.set("n", "q", "<cmd>:bd<cr>", {
|
||||
vim.keymap.set("n", "q", function()
|
||||
vim.api.nvim_buf_delete(event.buf, { force = true })
|
||||
end, {
|
||||
buffer = event.buf,
|
||||
silent = true,
|
||||
desc = "Quit buffer",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue