From 76486942e79973095795e8699f95bb509e063d0d Mon Sep 17 00:00:00 2001 From: Luis Carlos Cruz Carballo Date: Mon, 30 Nov 2020 21:30:07 -0400 Subject: Allow user configure parsers using metatables --- README.md | 13 +++++++++++++ lua/nvim-treesitter/parsers.lua | 39 +++++++++++++++++++++++++++------------ 2 files changed, 40 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 03466ba0..ba3b45a7 100644 --- a/README.md +++ b/README.md @@ -275,6 +275,19 @@ EOF You can also skip step 2 and use `:TSInstallFromGrammar zimbu` to install directly from a `grammar.js` in the top-level directory specified by `url`. Once the parser is installed, you can update it (from the latest revision of the `main` branch if `url` is a Github repository) with `:TSUpdate zimbu`. +## Update parsers used_by + +Sometimes needs to use some parser for different filetype. + +Add the following snippet to your `init.vim`: + +```vim +lua <