aboutsummaryrefslogtreecommitdiffstats
path: root/doc/nvim-treesitter.txt
diff options
context:
space:
mode:
authorNat Williams <nat.williams@kin.com>2023-02-02 13:26:20 -0600
committerStephan Seitz <stephan.seitz@fau.de>2023-02-24 14:55:30 -0800
commit20a8f30ace9fa9209b1c345311a36e91ab2f6d1d (patch)
tree0a527157db71a174e9ea0531c24322b0b1d59ea4 /doc/nvim-treesitter.txt
parentadd statusline option to dedupe or not (diff)
downloadnvim-treesitter-20a8f30ace9fa9209b1c345311a36e91ab2f6d1d.tar
nvim-treesitter-20a8f30ace9fa9209b1c345311a36e91ab2f6d1d.tar.gz
nvim-treesitter-20a8f30ace9fa9209b1c345311a36e91ab2f6d1d.tar.bz2
nvim-treesitter-20a8f30ace9fa9209b1c345311a36e91ab2f6d1d.tar.lz
nvim-treesitter-20a8f30ace9fa9209b1c345311a36e91ab2f6d1d.tar.xz
nvim-treesitter-20a8f30ace9fa9209b1c345311a36e91ab2f6d1d.tar.zst
nvim-treesitter-20a8f30ace9fa9209b1c345311a36e91ab2f6d1d.zip
use positive option "allow_duplicates" instead of negative "dedupe"
Diffstat (limited to 'doc/nvim-treesitter.txt')
-rw-r--r--doc/nvim-treesitter.txt4
1 files changed, 2 insertions, 2 deletions
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()~