Skip to content

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

License

Notifications You must be signed in to change notification settings

Dr-42/error-jump.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

use ("Dr-42/error-jump.nvim")

Lazy

{
    "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:

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

Contributing

Feel free to make any pull requests

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published