Skip to content

jdearmas/just-compiler.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

just-compiler.nvim

Neovim quickfix compiler for just with Rust/cargo output support.

Parses just recipe output (which is prefixed with || ) and populates the quickfix list with navigable errors and warnings from rustc/cargo.

Installation

lazy.nvim

{
  "jdearmas/just-compiler.nvim",
  config = function()
    require('just-compiler').setup({
      env = {
        RUST_BACKTRACE  = "full",
        LIBAFL_QEMU_DIR = "/Users/a/code/git/qemu-libafl-bridge",
      },
      target        = "target",
      open_quickfix = true,
      jump_to_first = false,
    })
  end,
}

lazy.nvim (from local directory)

{
  dir = "~/code/git/just-compiler.nvim",
  config = function()
    require('just-compiler').setup({
      env = {
        RUST_BACKTRACE  = "full",
        LIBAFL_QEMU_DIR = "/Users/a/code/git/qemu-libafl-bridge",
      },
      target        = "target",
      open_quickfix = true,
      jump_to_first = false,
    })
  end,
}

Commands

Command Description
:JustBuild [target] Run just; uses :Make (async) if vim-dispatch is loaded, otherwise :make! (sync)
:JustCompiler [target] Configure makeprg + errorformat + b:dispatch without building
:make / :Make Re-run the build (sync / async via vim-dispatch)
:Dispatch Re-run asynchronously using b:dispatch (set by :JustBuild/:JustCompiler)
:Copen Open quickfix (dispatch-aware)
:cn / :cp Next / previous error
:cc N Jump to error N

About

Neovim quickfix compiler for just with Rust/cargo output support.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages