diff options
author | Squibid <me@zacharyscheiman.com> | 2024-11-19 13:14:06 -0600 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-11-19 13:14:06 -0600 |
commit | 09533268946a7884c44fa69ab4ad6ea6a413d862 (patch) | |
tree | 1a124466091865592fae68359d5f5906afc0324e /lua | |
parent | 95fcc5e416218b3dac38649b8549319a922901d9 (diff) | |
download | nvim-09533268946a7884c44fa69ab4ad6ea6a413d862.tar.gz nvim-09533268946a7884c44fa69ab4ad6ea6a413d862.tar.bz2 nvim-09533268946a7884c44fa69ab4ad6ea6a413d862.zip |
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
Diffstat (limited to 'lua')
-rw-r--r-- | lua/conf/autos.lua | 1 |
1 files changed, 0 insertions, 1 deletions
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 }) |