mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 08:50:11 -04:00
feat: allow 'revision' override in parser config (#1661)
This commit is contained in:
parent
81305705e1
commit
6ed86a8516
2 changed files with 31 additions and 11 deletions
|
|
@ -328,6 +328,9 @@ Note also that module functionality is only triggered if your language's filetyp
|
|||
If Neovim does not detect your language's filetype by default, you can add a short Vimscript file to nvim-treesitter's `ftdetect` runtime directory.
|
||||
See [Neovim's documentation](https://neovim.io/doc/user/filetype.html#new-filetype) on how to use Vimscript to detect a filetype.
|
||||
|
||||
If you use a git repository for your parser and want to use a specific version, you can set the `revision` key
|
||||
in the `install_info` table for you parser config.
|
||||
|
||||
## Update parsers used_by
|
||||
|
||||
Sometimes needs to use some parser for different filetype.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue