feat: initial release
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s

This commit is contained in:
swaits committed 2026-04-09 17:30:27 -06:00
commit 38c06f758f
17 files changed
+279

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
local M = {}
function M.setup(opts)
opts = opts or {}
local filetypes = opts.filetypes
or {
"checkhealth",
"help",
"lspinfo",
"man",
"neotest-output",
"neotest-output-panel",
"neotest-summary",
"notify",
"qf",
"query",
"startuptime",
}
local group = vim.api.nvim_create_augroup("tiny-shoo", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
group = group,
pattern = filetypes,
callback = function(event)
vim.bo[event.buf].buflisted = false
vim.keymap.set("n", "q", "<cmd>close<cr>", { buffer = event.buf, silent = true })
end,
})
vim.api.nvim_create_autocmd("WinEnter", {
group = group,
callback = function()
if vim.fn.winnr("$") == 1 and vim.bo.buftype == "quickfix" then
vim.cmd("quit")
end
end,
})
end
return M