From 09533268946a7884c44fa69ab4ad6ea6a413d862 Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 19 Nov 2024 13:14:06 -0600 Subject: remove auto center when returning to last place in buffer This had to be removed due to random "zz"'s being inserted whenever a bufread was called while I was insert mode there's probably a better way to center the pane, but that's too much of a pain to worry about right now --- lua/conf/autos.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'lua/conf/autos.lua') diff --git a/lua/conf/autos.lua b/lua/conf/autos.lua index 1f642a1..48efbf4 100644 --- a/lua/conf/autos.lua +++ b/lua/conf/autos.lua @@ -26,7 +26,6 @@ auto('BufRead', { group = bufcheck, desc = 'Return to the last place the buffer was closed in.', callback = function() - vim.api.nvim_input('zz') vim.cmd.call([[setpos(".", getpos("'\""))]]) end }) -- cgit v1.2.1