diff --git a/roles/neovim/files/lua/opdavies/options.lua b/roles/neovim/files/lua/opdavies/options.lua index bf0ec9f..8073ced 100644 --- a/roles/neovim/files/lua/opdavies/options.lua +++ b/roles/neovim/files/lua/opdavies/options.lua @@ -100,6 +100,10 @@ local function set_key_mappings() nmap { "", ":m .-2==", opts } vmap { "", ":m '>+1gv=gv", opts } vmap { "", ":m '<-2gv=gv", opts } + + -- Move half a screen up or down and re-center. + nmap { "", "zz" } + nmap { "", "zz" } end local function set_highlights()