/just.nvim

just neovim plugin

Primary LanguageLua

just.nvim

A just command runner plugin for neovim.

Prerequisites

Install the just command runner

Arch Linux

sudo pacman -S just

MacOS

brew install just

Getting started

Packer

use("BeatScherrer/just.nvim")

set up the plugin:

require("just").setup()

Telescope extension

This plugin comes with a telescope extension. This allows to pick the recipe in a telescope picker and run them directly.

Register the extension in telescope:

require("telescope").load_extension("just")

Run recipes

To run a recipe the user command Just is available that wraps the actual command and handles output.

Example:

:Just some-task

If an error occurrs in the passed recipe the quickfix is automatically opened.

TODO:

  • Add config to not open the quickfix on error
  • Add config to jump to first error on failure
  • Add quickfix error parsing support
  • Improve the error messages in the just project
  • Come up with a strategy to handle multiple arguments when using the telescope extension
  • Dispatched processes cannot be cancelled...
  • Where should just recipe output go? quickfix list is not ideal since multiple just recipes should run in parallel, especially long running processes.