feat(autocmds): added 'query' to close_with_q autocmd

This commit is contained in:
Folke Lemaitre 2023-03-04 10:40:00 +01:00
parent 0d32e62567
commit 2e951e4f44
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -42,15 +42,16 @@ vim.api.nvim_create_autocmd("BufReadPost", {
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
group = augroup("close_with_q"), group = augroup("close_with_q"),
pattern = { pattern = {
"qf", "PlenaryTestPopup",
"help", "help",
"lspinfo",
"man", "man",
"notify", "notify",
"lspinfo", "qf",
"query", -- :InspectTree
"spectre_panel", "spectre_panel",
"startuptime", "startuptime",
"tsplayground", "tsplayground",
"PlenaryTestPopup",
}, },
callback = function(event) callback = function(event)
vim.bo[event.buf].buflisted = false vim.bo[event.buf].buflisted = false