Skip to content

Neovim Plugin for handling Diesel CLI for Rust Development

Notifications You must be signed in to change notification settings

casserlyprogramming/diesel-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

DIESEL VIM

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.

Installation

Install using your usual package manager. Using Vim-Plug the syntax is:

Plug 'casserlyprogramming/diesel-vim'

then run

:PlugInstall

Usage

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 generate
  • DRun: will run migrations
  • DRedo: will redo migrations (equivalent to revert + run)
  • DRevert: Will undo the last migration
  • DSetup: Will ask for a database url and then run setup
  • DReset: Will reset the current database from the URL
  • DPrint: Will print the schema
  • D: will run the command passed as an argument

Contributing

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.

About

Neovim Plugin for handling Diesel CLI for Rust Development

Topics

Resources

Stars

Watchers

Forks