Skip to content

Commit

Permalink
fix(nvim): fugitive aucmd
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Mar 20, 2024
1 parent a19610f commit 59f4d10
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/neovim/config/lua/user/fugitive.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
vim.api.nvim_create_autocmd("BufWinEnter", {
vim.api.nvim_create_autocmd("FileType", {
group = vim.api.nvim_create_augroup("user-fugitive", { clear = true }),
pattern = "*",
pattern = "fugitive",
callback = function()
if vim.bo.ft ~= "fugitive" then
return
end

local keymap = function(lhs, rhs, desc)
vim.keymap.set("n", lhs, rhs, {
noremap = true,
Expand Down

0 comments on commit 59f4d10

Please sign in to comment.