Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrheinen/bazelbub.nvim

A simple neovim plugin to run bazel test and bazel build
https://github.com/mrheinen/bazelbub.nvim

bazel development ide neovim

Last synced: 3 days ago
JSON representation

A simple neovim plugin to run bazel test and bazel build

Awesome Lists containing this project

README

        

# bazelbub.nvim
A simple neovim plugin to run bazel test and bazel build

![Screenshot](https://github.com/mrheinen/bazelbub.nvim/blob/main/screenshot/screenshot.png?raw=true)

# Installation
## Using lazy.nvim

Use the following snippet but update the version to the latest release.
```
{
'mrheinen/bazelbub.nvim',
version = "v0.2"
}
```

## Using packer.nvim

Similar to above; use this snippet and update the tag to the latest release.

```
use {
'mrheinen/bazelbub.nvim',
tag = 'v0.2',
}
```

# Description

This is a very simple plugin for those who develop with
[bazel](https://bazel.build/). The plugin allows you to run tests and build for
the dependencies of the file you are editing.

At the moment it beats having to go from neovim to a seperate terminal to run
bazel but there is room for improvement.

## Running tests

Using `:BazelTest` you can run "bazel test" against all test dependencies of the
current file you are editing. If you want to check what these targets are then
first run `:BazelShowTestTargets`

## Building

Using `:BazelBuild` you can run "bazel build" against all dependencies of the
current file. To inspect what the targets are you can use `:BazelShowBuildTargets`

## Runing gazelle

Using `:BazelGazelle` you can run "bazel run //:gazelle" to update your BUILD
files. Additionally you can use `:BazelGazelleUpdate` to update your
dependencies.