A new config option custom_language_formatting has been added. It's a table with keys being language names and values being a table such as {extension="md", style="myst"}.
If a spec for the language defined in the notebook metadata is available it will override the auto mode.
The only caveat is that the filetype of the buffer will be set to the extension. This implies, that unless the rest of the user's configuration is build to support a "language non-native file extension" [*] workflow, some features, such as the language LSP, will not be available.
Addresses #1
A new config option
custom_language_formatting
has been added. It's a table with keys being language names and values being a table such as{extension="md", style="myst"}
.If a spec for the language defined in the notebook metadata is available it will override the
auto
mode.The only caveat is that the filetype of the buffer will be set to the extension. This implies, that unless the rest of the user's configuration is build to support a "language non-native file extension" [*] workflow, some features, such as the language LSP, will not be available.
[*] Could not find a better way to describe this