Read lines from a Neovim buffer
nvim_read_fileRead file contents through Neovim with line numbers. Specify start and end lines to read a slice of large files, avoiding excessive output.
Instructions
Read a file through Neovim with line numbers. Opens the file if needed. Use start_line and end_line to read a slice of a large file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| end_line | No | Last line, inclusive | |
| start_line | No | First line, 1-based |