Commit Graph

12 Commits

Author SHA1 Message Date
Lewis Russell
6d821bed1c word diff: More tweaks 2021-06-14 16:51:17 +01:00
Lewis Russell
20c01748c2 word diff: Tweaks and fixes 2021-06-14 14:59:29 +01:00
Lewis Russell
3a2cbc7f6f Replace word diff implementation with FFI version 2021-06-11 22:12:45 +01:00
Lewis Russell
8cdce5000d Make FFI hunk_func and closure again
Resolves the infamous gitsigns+fzf-native+linux issue (#191)
2021-05-14 23:23:40 +01:00
Lewis Russell
db1a00fcce Handle FFI callbacks properly
The usage of jit.off() was completely wrong. And the implementation was
pretty inefficent due to creating lots of ffi objects

Should resolve: https://github.com/neovim/neovim/issues/14487
2021-05-14 14:39:21 +01:00
Lewis Russell
a2a40ef2bf diff: Refactor internal diff
- Do less work in FFI callback
2021-05-08 12:51:04 +01:00
Lewis Russell
445c7d54d8 Change style of requires from / to . 2021-04-25 16:52:12 +01:00
Lewis Russell
14e56e1949 Disable jit when running internal diff.
Resolves #166
2021-04-24 16:25:20 +01:00
Lewis Russell
b003c314ac Unglobal all the types
Fixes #107
2021-03-27 10:11:58 +00:00
Lewis Russell
1a99d54302 diif.tl: Fix when diffing an empty buffer 2021-03-09 17:30:03 +00:00
Lewis Russell
b2fa52ea86 diff.tl: Fix hunk parsing 2021-03-08 17:06:22 +00:00
Lewis Russell
7abe534b74 Use nvim's internal diff via ffi!
WIP

Enabled with config._use_internal_diff
2021-03-07 23:53:23 +00:00