Skip to content

Commit a3c4092

Browse files
committed
fix(filetype): fix issue where gitcommit filetype was not ignored
1 parent 9a64630 commit a3c4092

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/neogit/autocmds.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ function M.setup()
1616
end
1717

1818
-- Do not trigger on neogit buffers such as commit
19-
if api.nvim_buf_get_option(o.buf, "filetype"):find("Neogit") then
19+
if api.nvim_buf_get_option(o.buf, "filetype"):find("Neogit")
20+
or api.nvim_buf_get_option(o.buf, "filetype"):find("gitcommit")
21+
then
2022
return
2123
end
2224

0 commit comments

Comments
 (0)