Disable sort_text by default
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user