fix: disable q to quit certain filetypes
This commit is contained in:
parent
2bd9f0c06e
commit
30c47293b0
1 changed files with 8 additions and 8 deletions
|
@ -11,11 +11,11 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "FileType" }, {
|
-- vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||||
group = augroup("close_with_q"),
|
-- group = augroup("close_with_q"),
|
||||||
pattern = { "fugitive", "git", "gitcommit" },
|
-- pattern = { "fugitive", "git", "gitcommit" },
|
||||||
callback = function(event)
|
-- callback = function(event)
|
||||||
vim.bo[event.buf].buflisted = false
|
-- vim.bo[event.buf].buflisted = false
|
||||||
vim.keymap.set("n", "q", "<cmd>close<cr>", { buffer = event.buf, silent = true })
|
-- vim.keymap.set("n", "q", "<cmd>close<cr>", { buffer = event.buf, silent = true })
|
||||||
end,
|
-- end,
|
||||||
})
|
-- })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue