mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Use utils get_node_text to get line content and trim all whitespaces.
This commit is contained in:
parent
3aa7e575e2
commit
9ad47c65bd
2 changed files with 3 additions and 4 deletions
|
|
@ -425,7 +425,7 @@ Default options (lua syntax):
|
|||
{
|
||||
indicator_size = 100,
|
||||
type_patterns = {'class', 'function', 'method'},
|
||||
transform_fn = function(line) return line:gsub('[%[%(%{]*%s*$', '') end,
|
||||
transform_fn = function(line) return line:gsub('%s*[%[%(%{]*%s*$', '') end,
|
||||
separator = ' -> '
|
||||
}
|
||||
<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue