From d815813f9b74d95e35997e921dfaa1aba7cc1f86 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 25 Aug 2026 12:28:22 +0000 Subject: [PATCH] if incorrect line number for git commit --- nvim/lua/darcula/autocmds.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nvim/lua/darcula/autocmds.lua b/nvim/lua/darcula/autocmds.lua index 1fc97fe..0e4c0c3 100644 --- a/nvim/lua/darcula/autocmds.lua +++ b/nvim/lua/darcula/autocmds.lua @@ -28,8 +28,11 @@ local group = local pos = vim.fn.line('\'"') if pos >= 1 and pos <= vim.fn.line("$") and vim.bo.filetype ~= "commit" and - vim.bo.filetype ~= "gitcommit" and vim.bo.filetype ~= "rebase" + vim.bo.filetype ~= "gitcommit" and + vim.bo.filetype ~= "fugitive" and + vim.bo.filetype ~= "rebase" then + print("oops", pos, vim.bo.filetype) vim.cmd('normal! g`"') end end