feat: first version of the plugin

This first version adds syntax highlighting to .jjdescription files
which are edited with (neo)vim after running |jj describe|. It also sets
adequate options such as setting a maximum line width of 72 characters
and wrapping text automatically.

More syntax highlighting will need to be added in the future.

Change-Id: I40dbf342d511872a05862e44297c153826b930a6
5 files changed
tree: dc0c8b4e53967364dfecff790726ceeb3d5f2587
  1. ftdetect/
  2. ftplugin/
  3. syntax/
  4. .gitreview
  5. LICENSE
  6. README.md
README.md

.jjdescription files plugin for Vim

This plugin adds syntax highlighting and some sensible options for .jjdescription files. These are temporary files created by JJ and opened in your configured editor when you run jj describe, so you can write a description for your change.

Installation

Use your favorite plugin manager to install the avm99963/vim-jjdescription plugin. For instance, with vim-plug you should add the following to the appropriate section in your .vimrc:

Plug 'avm99963/vim-jjdescription'

Credits

This plugin is based on the native syntax highlighting and ftplugin for gitcommit, which is the format of the analogous temporary files used by Git. This is the reason why this plugin is licensed with the Vim license.