From be28d2a4f69be4e43ea48dbca02832ca40f13b6e Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 12 Jan 2023 00:08:05 +0100 Subject: [PATCH] doc: Mention how to quickly add filetypes support See also: #122 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ff2402b..5ba231f 100644 --- a/README.md +++ b/README.md @@ -214,6 +214,16 @@ require('neogen').setup { } ``` +For example, if you want to quickly add support for new filetypes based around existing ones, you can do like this: + +```lua +require('neogen').setup({ + languages = { + ['cpp.doxygen'] = require('neogen.configurations.cpp') + } +}) +``` + ## Supported Languages There is a list of supported languages and fields, with their annotation style