Skip to content

Commit

Permalink
map: toggle middle line focus
Browse files Browse the repository at this point in the history
  • Loading branch information
onjin committed Jun 17, 2024
1 parent 926d51f commit 054dbee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ set("n", "<M-k>", function()
vim.cmd [[m .-2<CR>==]]
end
end)

set("n", "<leader>tm", function()
vim.o.scrolloff = 9999 - vim.o.scrolloff
end, { noremap = true, silent = true, desc = "[T]oggle [M]iddle line focus" }) -- toggle centering cursor at middle line

0 comments on commit 054dbee

Please sign in to comment.