An open API service indexing awesome lists of open source software.

https://github.com/dr-42/error-jump.nvim

Gives basic functionality for error messages with format filename:line:column
https://github.com/dr-42/error-jump.nvim

compilation-mode lua neovim-plugin

Last synced: 7 months ago
JSON representation

Gives basic functionality for error messages with format filename:line:column

Awesome Lists containing this project

README

          

# error-jump.nvim

Give basic functionality for handling error messages in filename:line<:column> format.
Also has a compilation mode for easy edit, compile, jump to error, fix cycle.

## Installation

### Packer
```lua
use ("Dr-42/error-jump.nvim")
```

### Lazy
```lua
{
"Dr-42/error-jump.nvim",
name = "error-jump",
}
```

## Configuration

### Available functions

| Function | Description |
|------------------|----------------------------------------------------------------------------------------|
| compile() | Opens a new compilation tab with the compile command you specified |
| jump_to_error() | Jumps to the error location in the source file for a error of the form file:row:column |
| next_error() | Jumps to the next error in the source file |
| previous_error() | Jumps to the previous error in the source file |

It is useful to remap keybindings

Example:
```lua
vim.keymap.set('n', 'es', require('error-jump').jump_to_error, { desc = '[E]rror [S]ource' })
vim.keymap.set('n', 'en', require('error-jump').next_error, { desc = '[E]rror [N]ext' })
vim.keymap.set('n', 'eN', require('error-jump').next_error, { desc = '[E]rror [N]previous' })
vim.keymap.set('n', 'ec', require('error-jump').compile, { desc = '[E]rror [C]ompile' })
```

## Contributing

Feel free to make any pull requests