fix(autocmds): nvim already binds q to close for man-files (#2594)
This commit is contained in:
@ -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"),
|
||||||
|
Reference in New Issue
Block a user