Dont list quickfix buffers #1310

This commit is contained in:
Sidhanth Rathod 2022-07-08 19:20:57 +05:30 committed by GitHub
parent 1500ff1516
commit 86b3b6e96b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,14 @@ vim.cmd "silent! command! NvChadSnapshotCheckout lua require('nvchad').snap_chec
local autocmd = vim.api.nvim_create_autocmd local autocmd = vim.api.nvim_create_autocmd
local api = vim.api 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 -- wrap the PackerSync command to warn people before using it in NvChadSnapshots
autocmd("VimEnter", { autocmd("VimEnter", {
callback = function() callback = function()