iamcco / iamcco/markdown-preview.nvim

No recognition of `mail.markdown` filetype

Open
#719 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

I have my NeoVim configured to have Markdown injected into Mail, since I write all my emails in Markdown for post-processing. As a consequence, I set the filetype for a mail message to `mail.markdown`.

If I do so, then markdown-preview won't load the key bindings. The command `:MarkdownPreview` still works, but `cp` does not.

I have tried adding `mail.markdown` verbatim to `g:mkdp_filetypes`, but to no avail. In any case, since for Vim, `mail.markdown` is really `mail` & `markdown`, markdown-preview should load in its default configuration for filetype `mail.markdown`. That would be ideal.

**To Reproduce**

My setup is here:

The main file is `.config/lazyvim/after/ftplugin/mail` as it changes the filetype.

In my setup, `cp` is not available.

However, I could not reproduce this problem with `+"set ft=mail.markdown"`` or using a modeline.

**Expected behavior**

If I list `markdown` in `g:mkdp_filetypes`, then I expect markdown-preview to work if the filetype is `mail.markdown`

**Desktop (please complete the following information):**

- OS: Debian sid, Neovim 0.10.4-8, latest Lazyvim, latest markdown-preview

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.