mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
add statusline option to dedupe or not
This commit is contained in:
parent
34adfe8e95
commit
3fab7abf6f
2 changed files with 11 additions and 3 deletions
|
|
@ -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()~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue