diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-01-25 13:43:41 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-02-07 09:22:55 +0100 |
commit | 00c57c98dfb2df58875a3d9ad8fc557ec9a24cba (patch) | |
tree | 15541520aa60732b476fa14f87f0d0b123d995c6 /runtime/doc/lua.txt | |
parent | 64807303df34318c075a6c9ba1e9ee350135748f (diff) | |
download | rneovim-00c57c98dfb2df58875a3d9ad8fc557ec9a24cba.tar.gz rneovim-00c57c98dfb2df58875a3d9ad8fc557ec9a24cba.tar.bz2 rneovim-00c57c98dfb2df58875a3d9ad8fc557ec9a24cba.zip |
treesitter: add standard &rtp/parser/ search path for parsers
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index af1f4a8c1f..c113a70027 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -494,10 +494,12 @@ VIM.TREESITTER *lua-treesitter* Nvim integrates the tree-sitter library for incremental parsing of buffers. Currently Nvim does not provide the tree-sitter parsers, instead these must -be built separately, for instance using the tree-sitter utility. -The parser is loaded into nvim using > +be built separately, for instance using the tree-sitter utility. The only +exception is a C parser being included in official builds for testing +purposes. Parsers are searched for as `parser/{lang}.*` in any 'runtimepath' +directory. A parser can also be loaded manually using a full path: > - vim.treesitter.add_language("/path/to/c_parser.so", "c") + vim.treesitter.require_language("python", "/path/to/python.so") <Create a parser for a buffer and a given language (if another plugin uses the same buffer/language combination, it will be safely reused). Use > |