Zeioth/markmap.nvim

Guard for markdown files

Closed this issue · 2 comments

It is currently possible to launch markmap from any buffer regardless of filetype. There should be something that guards vim.bo.filetype == "markdown" and just do nothing if current file is not of type markdown.

Zeioth commented

With the current formula, even if you have a markdown file with the wrong file extension, you will be able to run markmap. This is useful for hybrid filetypes that use markdown to write comments.

@Zeioth But is it expected, that it will literally open any file? Do you have any example of such hybrid file, so I can get the idear? Otherwise I would have another PR suggestion to solve this. Let me know.