Disable sort_text by default

This commit is contained in:
hrsh7th
2023-01-06 15:29:16 +09:00
parent 4748ea5a5a
commit 11a95792a5
2 changed files with 2 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ compare.locality = setmetatable({
local s, e = regexp:match_str(buffer) local s, e = regexp:match_str(buffer)
if s and e then if s and e then
local w = string.sub(buffer, s + 1, e) local w = string.sub(buffer, s + 1, e)
local d = math.abs(i - cursor_row) - (is_above and 0.1 or 0) local d = math.abs(i - cursor_row) - (is_above and 1 or 0)
locality_map[w] = math.min(locality_map[w] or math.huge, d) locality_map[w] = math.min(locality_map[w] or math.huge, d)
buffer = string.sub(buffer, e + 1) buffer = string.sub(buffer, e + 1)
else else

View File

@@ -64,7 +64,7 @@ return function()
compare.recently_used, compare.recently_used,
compare.locality, compare.locality,
compare.kind, compare.kind,
compare.sort_text, -- compare.sort_text,
compare.length, compare.length,
compare.order, compare.order,
}, },