Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gennaro-tedesco/nvim-dvc

The long awaited dvc plugin for neovim
https://github.com/gennaro-tedesco/nvim-dvc

dvc lua neovim

Last synced: 30 days ago
JSON representation

The long awaited dvc plugin for neovim

Awesome Lists containing this project

README

        




nvim-dvc



PR
Lua

The DVC plugin for neovim


Installation
Usage
Customisation
Feedback

If only one could interact with [DVC](https://dvc.org) from within neovim. Oh wait, `nvim-dvc` does just that!

## Installation
Install it using your favourite plugin manager; for instance if you are using vim-plug
```
Plug 'gennaro-tedesco/nvim-dvc'
```
Notice that this plugin makes use of bash core utils and `jq` internally (to parse DVC outputs), so it is recommended to have them installed.

## Usage
`nvim-dvc` populates the location list with DVC stages and metrics files for easy access to models performances, or it enables to execute pipelines making use of prompt autocompletion, or it quickly opens up the DVC configurations. See demo below for a quick tour:

![demo](https://user-images.githubusercontent.com/15387611/144018897-5432fec1-c0a7-4329-93ae-9923f8b56f10.gif)

Default commands:

| command | autocompletion | description
|:------------------ |:---------------|:-------------
|`DVCStages` | `` | populate the location list with DVC stages
|`DVCMetrics` | No | populate the location list with DVC metrics files
|`DVCRepro` | `` | prompt autocompletion menu (after ``) and execute stage
|`DVCFiles` | No | populate the location list with all DVC tracked files
|`DVCConfig` | No | open `/.dvc/config` for editing

The commands usage is self-explanatory, just invoke them and sit back; however, see `:h dvc-usage` (or `:h `)for further help.

## Customisation
If you prefer to populate the quickfix window rather than the location list simply override
```
lua require('nvim-dvc.config').use_quickfix = true
```

## Feedback
Do not forget that the best way to browse metrics files and json in general is [nvim-jqx](https://github.com/gennaro-tedesco/nvim-jqx).

If you find this plugin useful consider awarding it a ⭐, it is a great way to give feedback! Otherwise, any additional suggestions or merge request is warmly welcome!