Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkeresman01/maven-test-runner.nvim
Neovim plugin that allows you to execute tests from Neovim using maven.
https://github.com/jkeresman01/maven-test-runner.nvim
java linux maven mvn neovim neovim-plugin nvim nvim-plugin vim
Last synced: 28 days ago
JSON representation
Neovim plugin that allows you to execute tests from Neovim using maven.
- Host: GitHub
- URL: https://github.com/jkeresman01/maven-test-runner.nvim
- Owner: jkeresman01
- License: gpl-3.0
- Created: 2024-07-13T19:33:05.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T19:50:15.000Z (3 months ago)
- Last Synced: 2024-09-28T15:21:13.310Z (about 1 month ago)
- Topics: java, linux, maven, mvn, neovim, neovim-plugin, nvim, nvim-plugin, vim
- Language: Lua
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# maven-test-runner.nvim
Neovim plugin that allows you to execute tests from Neovim using maven.
[![asciicast](https://asciinema.org/a/1KoRnOYpVkXmZmzgD9deN2Fyz.svg)](https://asciinema.org/a/1KoRnOYpVkXmZmzgD9deN2Fyz)
## Default mappings ##
***
| Keybind | Action |
|---------------|---------------------------------|
| `m` | Open Maven Test Runner UI |
| `c` | Close Maven Test Runner UI |
| `` | Execute Maven test |## Installation ##
* neovim 0.5.0+ required :exclamation:
* Dependecies: treesiter
* Install using your plugin manager`Packer`
```lua
use 'jkeresman01/maven-test-runner.nvim'
````Vim-Plug`
```lua
Plug 'jkeresman01/maven-test-runner.nvim'
````dein`
```lua
call dein#add('jkeresman01/maven-test-runner.nvim')
````paq`
```lua
'jkeresman01/maven-test-runner.nvim';
````layz.nvim`
```lua
-- plugins/maven-test-runner.lua:
return {
'jkeresman01/maven-test-runner.nvim'
}
```## Customization ##
If you wan't to customize the keymapings you can do so, here is an example:```lua
local ui = require("maven-test-runner.ui")
local mvn = require("maven-test-runner.mvn")vim.keymap.set("n", "u", function() ui.open() end) -- Open Maven Test Runner UI
vim.keymap.set("n", "c", function() ui.close() end) -- Close Maven Test Runner UI
vim.keymap.set("n", "m", function() mvn.execute() end) -- Execute Maven Test|Tests
```