nvim already binds q to close for man-files

This commit is contained in:
Dennis Eriksen 2024-02-23 08:07:31 +01:00
parent 91126b9896
commit 9d4a2768d7

View file

@ -57,7 +57,6 @@ vim.api.nvim_create_autocmd("FileType", {
"PlenaryTestPopup", "PlenaryTestPopup",
"help", "help",
"lspinfo", "lspinfo",
"man",
"notify", "notify",
"qf", "qf",
"query", "query",
@ -75,6 +74,15 @@ vim.api.nvim_create_autocmd("FileType", {
end, end,
}) })
-- make it easier to close man-files when opened inline
vim.api.nvim_create_autocmd("FileType", {
group = augroup("man_unlisted"),
pattern = { "man" },
callback = function(event)
vim.bo[event.buf].buflisted = false
end,
})
-- wrap and check for spell in text filetypes -- wrap and check for spell in text filetypes
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
group = augroup("wrap_spell"), group = augroup("wrap_spell"),