mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 07:04:47 +00:00
clean
This commit is contained in:
parent
3b6293a458
commit
ecfa272a40
6 changed files with 24 additions and 61 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue