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
- Host: GitHub
- URL: https://github.com/dr-42/error-jump.nvim
- Owner: Dr-42
- License: bsd-2-clause
- Created: 2023-11-20T19:38:39.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-05T23:25:10.000Z (over 1 year ago)
- Last Synced: 2025-04-01T12:03:53.023Z (10 months ago)
- Topics: compilation-mode, lua, neovim-plugin
- Language: Lua
- Homepage:
- Size: 9.77 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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