/readermode.nvim

Simple nvim plugin for keeping your cursor centered

Primary LanguageLuaMIT LicenseMIT

readermode.nvim

Simple neovim plugin for keeping your cursor centered while reading through code/text/whatever

demo.mp4

Requirements

  • Neovim v0.7.0+

Setup

lazy.nvim

{
  'sarrisv/readermode.nvim',
  opts = { --[[ Configurations Options ]] }
}

Configuration

  {
    enabled = false, -- Turned off by default
    keymap = "<leader>R" -- Keymap used to toggle ReaderMode on/off
  }

Usage

Toggle ReaderMode using :ReaderMode or the provided normal mode keymapping

Credits

Inspired by this stackoverflow answer from user pip