GCBallesteros / jupytext.nvim

Jupyter notebooks on neovim powered by Jupytext
66 stars 14 forks source link

Support arbitrary output format based on language #2

Closed GCBallesteros closed 6 months ago

GCBallesteros commented 7 months ago

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