feat(config): replace algorithm 'auto'/'native' with 'default'/'vscode'
'default' inherits algorithm and linematch from diffopt, 'vscode' uses the FFI library. Removes the need for diffs.nvim to duplicate settings that users already control globally.
This commit is contained in:
parent
cc947167c3
commit
10af59a70d
6 changed files with 85 additions and 47 deletions
|
|
@ -90,7 +90,7 @@ local default_config = {
|
|||
},
|
||||
intra = {
|
||||
enabled = true,
|
||||
algorithm = 'auto',
|
||||
algorithm = 'default',
|
||||
max_lines = 500,
|
||||
},
|
||||
},
|
||||
|
|
@ -259,9 +259,9 @@ local function init()
|
|||
['highlights.intra.algorithm'] = {
|
||||
opts.highlights.intra.algorithm,
|
||||
function(v)
|
||||
return v == nil or v == 'auto' or v == 'native' or v == 'vscode'
|
||||
return v == nil or v == 'default' or v == 'vscode'
|
||||
end,
|
||||
"'auto', 'native', or 'vscode'",
|
||||
"'default' or 'vscode'",
|
||||
},
|
||||
['highlights.intra.max_lines'] = { opts.highlights.intra.max_lines, 'number', true },
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue