aboutsummaryrefslogtreecommitdiffstats
path: root/doc/nvim-treesitter.txt
diff options
context:
space:
mode:
authorNat Williams <nat.williams@kin.com>2023-02-02 13:16:44 -0600
committerStephan Seitz <stephan.seitz@fau.de>2023-02-24 14:55:30 -0800
commit3fab7abf6f653eb92eee74c19ce5e655536ced87 (patch)
tree525eb1f17c80bbd8d65c2ae900a9f1e69e91557b /doc/nvim-treesitter.txt
parentupdate docs for transform_fn (diff)
downloadnvim-treesitter-3fab7abf6f653eb92eee74c19ce5e655536ced87.tar
nvim-treesitter-3fab7abf6f653eb92eee74c19ce5e655536ced87.tar.gz
nvim-treesitter-3fab7abf6f653eb92eee74c19ce5e655536ced87.tar.bz2
nvim-treesitter-3fab7abf6f653eb92eee74c19ce5e655536ced87.tar.lz
nvim-treesitter-3fab7abf6f653eb92eee74c19ce5e655536ced87.tar.xz
nvim-treesitter-3fab7abf6f653eb92eee74c19ce5e655536ced87.tar.zst
nvim-treesitter-3fab7abf6f653eb92eee74c19ce5e655536ced87.zip
add statusline option to dedupe or not
Diffstat (limited to 'doc/nvim-treesitter.txt')
-rw-r--r--doc/nvim-treesitter.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index f2da04203..f8ac369bd 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -446,7 +446,8 @@ Default options (lua syntax):
indicator_size = 100,
type_patterns = {'class', 'function', 'method'},
transform_fn = function(line, _node) return line:gsub('%s*[%[%(%{]*%s*$', '') end,
- separator = ' -> '
+ separator = ' -> ',
+ dedupe = true
}
<
- `indicator_size` - How long should the string be. If longer, it is cut from
@@ -456,6 +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.
*nvim_treesitter#foldexpr()*
nvim_treesitter#foldexpr()~