From 20a8f30ace9fa9209b1c345311a36e91ab2f6d1d Mon Sep 17 00:00:00 2001 From: Nat Williams Date: Thu, 2 Feb 2023 13:26:20 -0600 Subject: use positive option "allow_duplicates" instead of negative "dedupe" --- doc/nvim-treesitter.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt index f8ac369bd..884f334eb 100644 --- a/doc/nvim-treesitter.txt +++ b/doc/nvim-treesitter.txt @@ -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()~ -- cgit v1.2.3-70-g09d2