Home

Awesome

readermode.nvim

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

https://github.com/user-attachments/assets/d9bd8a00-54cd-4264-83a8-2ad4d82d64dc

Requirements

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