commit | 60b712ed5734098175c2fb6a187b4340096d8a39 | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Tue Jan 30 01:49:53 2024 +0100 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Tue Jan 30 23:30:27 2024 +0100 |
tree | dc0c8b4e53967364dfecff790726ceeb3d5f2587 | |
parent | 44ff116ae3de261bbd4645e702a216d209c48d59 [diff] |
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
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.
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'
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.