diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-03-25 17:26:42 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-03-25 17:26:42 +0100 |
commit | 8bf06e3bfe994e8337f8d14d4dcf4e4677ed1f5a (patch) | |
tree | 7ebde8e364ec2b962958a451b65fdbe96a45a195 /nvim | |
parent | 70ee2964919c53a5b16e8c7917f174139ce6a58e (diff) |
nvim: disable jump to latest pos in Git messages
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/nvim/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nvim/nvim/init.lua b/nvim/nvim/init.lua index 1193861..f42bd1f 100644 --- a/nvim/nvim/init.lua +++ b/nvim/nvim/init.lua @@ -45,7 +45,7 @@ vim.opt.hlsearch = true -- Jump to latest position vim.api.nvim_create_autocmd({ "BufReadPost" }, { - pattern = { "*" }, + pattern = { '{*}{.git/COMMIT_EDITMSG}\\@<!' }, callback = function() vim.api.nvim_exec('silent! normal! g`"', false) end, |