.. | |||
backend | 5 months ago | ||
LICENSE | 5 months ago | ||
README.md | 5 months ago | ||
changes.lua | 5 months ago | ||
init.lua | 5 months ago | ||
manifest.json | 5 months ago | ||
readdoc.lua | 5 months ago | ||
treeview.lua | 5 months ago | ||
util.lua | 5 months ago |
This plugin provides base functionality that allows you to easily add support for any source control management system while saving you from having to re-implement editor integration. It uses Lite XL process
api to allow async calling of the SCM binaries.
You can easily implement your own SCM backend by extending plugins.scm.backend
, the plugin will take care of the rest for you. Currently it ships with the following backends:
Any of the backends listed above can serve you as an example or template to implement your own.
You will need to have the SCM binaries installed and accesible from your PATH
environment variable:
Follow the usual plugin installation procedure. When opening projects the backend will be auto detected by using the backend's detect()
method. Then it will be associated to the project for subsequente use.
scm:global-diff
command or clicking on the status bar SCM item.There is still missing functionality, but some of the following comes to mind:
scm:file-diff
Suggestions for how to implement the above features are welcome as other ideas not listed above.
Thanks to the authors of gitdiff and gitstatus which code served as a source of copy-pasting and inspiration!