This commit is contained in:
Harivansh Rathi 2026-02-20 18:17:00 -05:00
parent 3b6293a458
commit ecfa272a40
6 changed files with 24 additions and 61 deletions

View file

@ -15,6 +15,8 @@ api.nvim_create_autocmd("TextYankPost", {
api.nvim_create_autocmd("BufReadPost", {
group = augroup,
callback = function()
local excluded = { gitcommit = true, gitrebase = true }
if excluded[vim.bo.filetype] then return end
local mark = api.nvim_buf_get_mark(0, '"')
local line_count = api.nvim_buf_line_count(0)
if mark[1] > 0 and mark[1] <= line_count then