mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 09:48:59 +02:00
fix(autocmds): nvim already binds q to close for man-files (#2594)
This commit is contained in:
parent
1a417430fc
commit
16d6ac234a
1 changed files with 9 additions and 1 deletions
|
@ -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"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue