aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorThomas Vigouroux <thomas.vigouroux@protonmail.com>2022-08-24 15:36:58 +0200
committerGitHub <noreply@github.com>2022-08-24 15:36:58 +0200
commit9be4bfc5f4951976131e5e99ecf05882f6767fb4 (patch)
treea546d16c24309b5e3e369151d5d871bfd9f4d6f2 /runtime/doc
parentf1ea126a6eb1d9cae53eae3fedbfa51f90ee97b1 (diff)
parent3c1d70f20b5d5bad3bec121e589187d15f325a9b (diff)
downloadrneovim-9be4bfc5f4951976131e5e99ecf05882f6767fb4.tar.gz
rneovim-9be4bfc5f4951976131e5e99ecf05882f6767fb4.tar.bz2
rneovim-9be4bfc5f4951976131e5e99ecf05882f6767fb4.zip
Merge pull request #19496 from vigoux/ts_internal_lang
feat(treesitter): allow customizing language symbol name
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/treesitter.txt12
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
==============================================================================