Commit Graph

3 Commits

Author SHA1 Message Date
Lewis Russell
34deec2813 Add config.diff_opts and deprecate fields
- DEPRECATED diff_algorithm
    replaced with diff_opts.algorithm

- DEPRECATED use_internal_diff
    replaced with diff_opts.internal

- ADDED diff_opts.indent_heuristic
2021-09-09 13:58:07 +01:00
Lewis Russell
b38008cf24 async: require plenary.async -> plenary.async.async
plenary.async requires several modules not used by gitsigns which is
inflating the startup time. Instead just require plenary.async.async.

On an M1 Macbook this appears to half the startup time of gitsigns.
2021-08-02 12:31:56 +01:00
Lewis Russell
0180dfd7ae Refactor diff code
- Simplify external diff code and make it's api consistent with FFI diff.
- Move diff code into separate modules diff_ext and diff_ffi.
2021-07-21 16:09:20 +01:00