fix: remove autocmd for quit on q
This was causing issues with fugitive and committing changes via git.
This commit is contained in:
parent
69231195db
commit
ddcd313eef
1 changed files with 15 additions and 15 deletions
|
@ -8,14 +8,14 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.opt_local.spell = true
|
vim.opt_local.spell = true
|
||||||
vim.opt_local.wrap = true
|
vim.opt_local.wrap = true
|
||||||
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