This plugin is a wrapper around the most common diesel commands and gives full access to the rest of the DIESEL CLI from within NeoVim
The plugin is inspired by Vim Fugitive aand the syntax for commands is similar.
Install using your usual package manager. Using Vim-Plug the syntax is:
Plug 'casserlyprogramming/diesel-vim'
then run
:PlugInstall
To run any command that the Diesel CLI allows you can simply use: :D
followed
by the rest of the diesel command. So for diesel migration redo
write :D migration redo
Currently supported commands:
DGenerate
: will ask for a migration name and then run generateDRun
: will run migrationsDRedo
: will redo migrations (equivalent to revert + run)DRevert
: Will undo the last migrationDSetup
: Will ask for a database url and then run setupDReset
: Will reset the current database from the URLDPrint
: Will print the schemaD
: will run the command passed as an argument
This plugin is useful to me so I'm sharing it. I will happily accept PRs that make sense to the project and will accept issues if you wish to contribute in that way. I can't see this growing too much unless the Diesel CLI does too.