/vim-just

Vim Just Syntax

Primary LanguageVim ScriptMIT LicenseMIT

Vim Just Syntax

Vim syntax files for justfiles. Nothing to note yet as the project is young.

Installation

Plug 'NoahTheDuke/vim-just'
cd ~/.vim/bundle
git clone https://github.com/NoahTheDuke/vim-just.git
cd ~/.vim/pack/YOUR-NAMESPACE-HERE/start/
git clone https://github.com/NoahTheDuke/vim-just.git

Contributing & Development

Make some changes, open a PR, easy-peasy. I like to manually apply PRs, so don't be surprised if I close your PR while pushing your authored commit directly to master.

Prerequisites

If you don't have Rust installed, run just install-rustup in tests/. This will download and install the latest version of the Rust toolchain, including Cargo, the Rust package manager.

Run just deps to install the cargo dev dependencies, which right now is only cargo-watch.

Test Suite

To run the tests, run just run in tests/. Cargo will build and run the project, which is a simple test-runner in the main fn. If you're going to do more than a simple change, I recommend calling just watch in tests/, which will watch for any changes in the whole repo and re-run the test suite. Because of the use of vim's built-in TOhtml, the suite is rather slow, so if you want to only run or watch a single test file, you can specify the name by passing an argument to run or watch: just run recipe-dependency.