Pdfreader.nvim
Neovim plugin: read PDF files inside Neovim with dark/text modes, autosave, and bookmarks.
Install / Use
/learn @r-pletnev/Pdfreader.nvimREADME
pdfreader.nvim
Read and navigate PDF documents without leaving Neovim.
pdfreader.nvim renders PDF pages directly in the terminal (via Kitty’s graphics
protocol).
✨ Features
- Render PDF pages in standard, dark, or text-only mode.
- Bookmarks
- Telescope.nvim integration.
- Works on Mac and Linux.
📋 Requirements
- Kitty terminal or Ghostty
- Neovim ≥ 0.9
- ImageMagick
- Ghostscript (ImageMagick requires it for PDF support)
- poppler-utils
If supported terminal is unavailable, the plugin will automatically work in text mode only.
📦 Installation
lazy.nvim
{
"r-pletnev/pdfreader.nvim",
lazy = false,
dependencies = {
"folke/snacks.nvim", -- image rendering
"nvim-telescope/telescope.nvim", -- pickers
},
config = function()
require("pdfreader").setup()
end,
}
🚀 Usage
Open a PDF as you would any file:
:e ~/docs/paper.pdf
Key mappings
| Key | Action |
|-----|-------------------|
| n | Next page |
| p | Previous page |
| z | Zoom in |
| q | Zoom out |
| e | Reset zoom |
:PDFReader sub-commands
| Command | Description |
|-----------------------------------------------------|-------------|
| :PDFReader setViewMode {standard, dark, text} | Change view mode |
| :PDFReader setAutosave {on, off} | Toggle autosave |
| :PDFReader setPage {num} | Jump to page |
| :PDFReader addBookmark [{num}][,comment] | Add bookmark |
| :PDFReader showBookmarks | Telescope bookmarks picker |
| :PDFReader showRecentBooks | Telescope recent books picker |
| :PDFReader saveState | Force save state |
| :PDFReader clearState | Delete state & covers |
| :PDFReader redrawPage | Re-render current page |
| :PDFReader showToc | Show current book table of contents |
Command arguments are fully tab-completable.
🛠 Troubleshooting
- Blank buffer / no images → ensure you are using supported terminal and have installed ImageMagick and poppler-utils.
- Consult
:messagesfor detailed logs emitted by pdfreader.nvim.
🤝 Contributing
Pull requests and issues are welcome!
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
summarize
342.0kSummarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
feishu-doc
342.0k|
