diff options
| author | Kristijan Husak <husakkristijan@gmail.com> | 2020-10-09 19:51:27 +0200 |
|---|---|---|
| committer | Kiyan Yazdani <yazdani.kiyan@protonmail.com> | 2020-10-11 13:35:18 +0200 |
| commit | 9ad47c65bd0b939173803c8a23c9cf0dc6cff70f (patch) | |
| tree | 4f9664a016f0f885dd7db5d5caeeef90102ef008 /doc | |
| parent | 3aa7e575e23228477e16940d2bc786a52a142eb8 (diff) | |
Use utils get_node_text to get line content and trim all whitespaces.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/nvim-treesitter.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt index c6ea4ed3..dee1ff8b 100644 --- a/doc/nvim-treesitter.txt +++ b/doc/nvim-treesitter.txt @@ -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 = ' -> ' } < |
