Skip to content

C-Hipple/diff-lsp.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diff-lsp.el

Emacs package for using with diff-lsp with magit & code-review or code-review-server

Functionality

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.

Usage

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)

Configuration

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))

Installation

Not currently available on MELPA or other repositories. You can use your favorite package manager to install directly from github.

Spacemacs Installation

Simply add this to your dotspacemacs-additional-packages list

  (diff-lsp :location (recipe
                     :fetcher github
                     :repo "C-Hipple/diff-lsp.el"
                     :files ("*.el")
                     )
          )

About

Emacs package for using with diff-lsp with magit & code-review

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors