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

https://github.com/mr-destructive/dj.vim

A Neovim plugin for faster development of Django projects
https://github.com/mr-destructive/dj.vim

Last synced: 8 months ago
JSON representation

A Neovim plugin for faster development of Django projects

Awesome Lists containing this project

README

          

## DJ.vim

DJ.vim is a vim plugin for making development process of django projects eassier in vim. It can run management commands, run server, etc. from the vim integrated terminal.

## Features

- Automatically detect virtual environment / create a default environment if not present.
- Run server inside the integrated terminal in vim.
- Run management commands such as migrations, starting apps, projects, django shell, etc.

## Setup

Inside of the Lua setup for `Packer` add the plugin as follows:

```lua
use 'mr-destructive/dj.vim'
```

For custom keymappings use the below format:

```vim
nnoremap yourkeys :lua require("django").FUNCTION_NAME
```

## Default keymaps

- pr -> `Create_Project()`
- rs -> `Run_Server()`
- sh -> `Start_Shell()`
- mm -> `Makemigrations()`
- mg -> `Migrate()`
- ap -> `Start_App()`
- su -> `CreateSuperUser()`
- tm -> `StartTerminal()`
- cs -> `RunCustomCommand()`