diff options
author | Thomas Vigouroux <thomas.vigouroux@protonmail.com> | 2022-07-25 12:23:04 +0200 |
---|---|---|
committer | Thomas Vigouroux <thomas.vigouroux@protonmail.com> | 2022-08-22 15:34:10 +0200 |
commit | 3c1d70f20b5d5bad3bec121e589187d15f325a9b (patch) | |
tree | 3c15e309b30fa5f243d7d7e5e952ce58e6eaf126 /runtime/doc | |
parent | 15a768eeb02e2af39eead1ea1eb4a5a60710d6fb (diff) | |
download | rneovim-3c1d70f20b5d5bad3bec121e589187d15f325a9b.tar.gz rneovim-3c1d70f20b5d5bad3bec121e589187d15f325a9b.tar.bz2 rneovim-3c1d70f20b5d5bad3bec121e589187d15f325a9b.zip |
feat(treesitter): allow customizing language symbol name
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/treesitter.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index 52531a1525..06409f9980 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -387,16 +387,20 @@ inspect_language({lang}) *inspect_language()* Parameters: ~ {lang} The language. -require_language({lang}, {path}, {silent}) *require_language()* + *require_language()* +require_language({lang}, {path}, {silent}, {symbol_name}) Asserts that the provided language is installed, and optionally provide a path for the parser Parsers are searched in the `parser` runtime directory. Parameters: ~ - {lang} The language the parser should parse - {path} Optional path the parser is located at - {silent} Don't throw an error if language not found + {lang} (string) The language the parser should parse + {path} (string|nil) Optional path the parser is located at + {silent} (boolean|nil) Don't throw an error if language not + found + {symbol_name} (string|nil) Internal symbol name for the language to + load ============================================================================== |