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
- Host: GitHub
- URL: https://github.com/mr-destructive/dj.vim
- Owner: Mr-Destructive
- Created: 2022-04-18T15:21:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T15:58:30.000Z (over 3 years ago)
- Last Synced: 2025-07-05T00:05:48.913Z (11 months ago)
- Language: Lua
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()`