ellisonleao / glow.nvim

A markdown preview directly in your neovim.
MIT License
1.26k stars 52 forks source link

feature: configurable filetypes #138

Open BerkeleyTrue opened 6 months ago

BerkeleyTrue commented 6 months ago

I have some code that runs in markdowns under certain conditions, which require changing the filetype of certain markdown files to 'markdown.corpus'. It doesn't change anything about the syntax that should mess with Glow rendering.

I would like to extend allowable filetypes, which is currently hardcoded.

It would also be acceptable to have this library look for the root filetype instead of the whole ft match, like how "javascript.jsx" still counts as a javascript file for most plugins.

AlejandroSuero commented 3 months ago

@BerkeleyTrue if you want to use my branch in the mean while and tell me if that way it covers your issue?