From 86b3b6e96bad85727378a5849e89d2f65afe3cc7 Mon Sep 17 00:00:00 2001 From: Sidhanth Rathod Date: Fri, 8 Jul 2022 19:20:57 +0530 Subject: [PATCH] Dont list quickfix buffers #1310 --- lua/core/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/core/init.lua b/lua/core/init.lua index 7e98731..6ba95e8 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -8,6 +8,14 @@ vim.cmd "silent! command! NvChadSnapshotCheckout lua require('nvchad').snap_chec local autocmd = vim.api.nvim_create_autocmd local api = vim.api +-- dont list quickfix buffers +autocmd("FileType", { + pattern = "qf", + callback = function() + vim.opt_local.buflisted = false + end, +}) + -- wrap the PackerSync command to warn people before using it in NvChadSnapshots autocmd("VimEnter", { callback = function()