From 30c47293b0132ec28fdc433e8a0f7929f39052e4 Mon Sep 17 00:00:00 2001 From: Devin Haska Date: Mon, 1 Apr 2024 11:04:10 -0700 Subject: [PATCH] fix: disable q to quit certain filetypes --- lua/autocmds.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lua/autocmds.lua b/lua/autocmds.lua index a60cb91..39927ae 100644 --- a/lua/autocmds.lua +++ b/lua/autocmds.lua @@ -11,11 +11,11 @@ vim.api.nvim_create_autocmd({ "FileType" }, { end, }) -vim.api.nvim_create_autocmd({ "FileType" }, { - group = augroup("close_with_q"), - pattern = { "fugitive", "git", "gitcommit" }, - callback = function(event) - vim.bo[event.buf].buflisted = false - vim.keymap.set("n", "q", "close", { buffer = event.buf, silent = true }) - end, -}) +-- vim.api.nvim_create_autocmd({ "FileType" }, { +-- group = augroup("close_with_q"), +-- pattern = { "fugitive", "git", "gitcommit" }, +-- callback = function(event) +-- vim.bo[event.buf].buflisted = false +-- vim.keymap.set("n", "q", "close", { buffer = event.buf, silent = true }) +-- end, +-- })