diff --git a/README.md b/README.md index 0601bfb59..a2c593b8e 100644 --- a/README.md +++ b/README.md @@ -355,12 +355,19 @@ parser_config.zimbu = { generate_requires_npm = false, -- if stand-alone parser without npm dependencies requires_generate_from_grammar = false, -- if folder contains pre-generated src/parser.c }, - filetype = "zu", -- if filetype does not agrees with parser name - used_by = {"bar", "baz"} -- additional filetypes that use this parser + filetype = "zu", -- if filetype does not match the parser name } EOF ``` +If you wish to set a specific parser for a filetype, you should extend the `filetype_to_parsername` table: +```vim +lua <