use positive option "allow_duplicates" instead of negative "dedupe"

This commit is contained in:
Nat Williams 2023-02-02 13:26:20 -06:00 committed by Stephan Seitz
parent 3fab7abf6f
commit 20a8f30ace
2 changed files with 4 additions and 7 deletions

View file

@ -447,7 +447,7 @@ Default options (lua syntax):
type_patterns = {'class', 'function', 'method'},
transform_fn = function(line, _node) return line:gsub('%s*[%[%(%{]*%s*$', '') end,
separator = ' -> ',
dedupe = true
allow_duplicates = false
}
<
- `indicator_size` - How long should the string be. If longer, it is cut from
@ -457,7 +457,7 @@ Default options (lua syntax):
default removes opening brackets and spaces from end. Takes two arguments:
the text of the line in question, and the corresponding treesitter node.
- `separator` - Separator between nodes.
- `dedupe` - Whether or not to remove duplicate components.
- `allow_duplicates` - Whether or not to remove duplicate components.
*nvim_treesitter#foldexpr()*
nvim_treesitter#foldexpr()~