book/src/guides/adding_languages.md
In order to add a new language to Helix, you will need to follow the steps below.
[[language]] entry in the languages.toml file and provide the
necessary configuration for the new language. For more information on
language configuration, refer to the
language configuration section of the documentation.
A new language server can be added by extending the [language-server] table in the same file.cargo xtask docgen to update the
Language Support documentation.💡 If you are adding a new Language Server configuration, make sure to update the Language Server Wiki with the installation instructions.
[[grammar]] entry to the languages.toml file.source.path key
with an absolute path to the grammar. However, before submitting a pull
request, make sure to switch to using source.git.runtime/queries/<name>/.hx --grammar fetch
to fetch the grammars and hx --grammar build to build any out-of-date
grammars.runtime/grammars/<name>.so.HELIX_RUNTIME is set to the location of the runtime folder you're developing in.