Emacs package for using with diff-lsp with magit & code-review or code-review-server
diff-lsp.el is for configuring diff-lsp to run in various diff modes, allowing your lsp servers to parse diffs (using the full source code, not just the contents of the diff)
The end vision is to have it active on magit-status and code-review buffers to make our lives easier as developers.
Add a call to the setup function to your init or call it manually when you want to use diff-lsp automatically.
(diff-lsp-setup-advice)To remove it, run
(diff-lsp-remove-advice)You can tweak your tempfile location if you so desire via adjusting. The default value is /tmp/
Note that diff-lsp will also need to know where you're writing this tmp file, and this is where it checks by default.
(setq diff-lsp-tempfile-dir "/tmp/")You can also adjust which major modes are active using. Default value is code-review-mode only and my-code-review-mode.
(setq diff-lsp-major-modes '(code-review-mode magit-status-mode))Not currently available on MELPA or other repositories. You can use your favorite package manager to install directly from github.
Simply add this to your dotspacemacs-additional-packages list
(diff-lsp :location (recipe
:fetcher github
:repo "C-Hipple/diff-lsp.el"
:files ("*.el")
)
)