diff options
author | tdback <tyler@tdback.net> | 2025-01-17 20:12:52 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-17 20:12:52 -0500 |
commit | 18749407bfa6a8c5b4921705f992f5465736974d (patch) | |
tree | a22908098f1de34a4f1935f3b0a44c4de45eeff3 /plugin | |
parent | 7780e97dd26aae185cb6714820f274f1e35f1439 (diff) |
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/autocmd.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/autocmd.lua b/plugin/autocmd.lua index 1597a21..ee96371 100644 --- a/plugin/autocmd.lua +++ b/plugin/autocmd.lua @@ -22,6 +22,9 @@ autocmd({ "BufWritePre" }, { -- Restore cursor's position in buffer from previous session. autocmd({ "BufReadPost" }, { callback = function(args) + if vim.bo.filetype == "gitcommit" then + return + end local mark = vim.api.nvim_buf_get_mark(args.buf, '"') local count = vim.api.nvim_buf_line_count(args.buf) if mark[1] > 0 and mark[1] <= count then |