Skip to content

marksman markdown module registers unknown filetype markdown.mdx #1453

@yadokani389

Description

@yadokani389

I have confirmed that this is a bug related to nvf

  • This is a bug, and not an user error or a support request. I understand that my issue will be closed if it is not a bug in nvf.
  • I have checked the issues tab and confirmed that my issue has not yet been reported. I understand that my issue will be closed if it is a duplicate.

Description

The Markdown language module configures marksman with the filetype markdown.mdx:

modules/plugins/languages/markdown.nix:24

filetypes = ["markdown" "markdown.mdx"];

However, on Neovim 0.11.6, markdown.mdx is not a known filetype, so :LspInfo shows:

WARNING Unknown filetype 'markdown.mdx'.

If nvf wants to keep markdown.mdx, it could register the filetype explicitly with something like:

vim.filetype.add({
  extension = {
    mdx = "markdown.mdx",
  },
})

Installation Method

Standalone (flake outputs, nix profile install, etc.)

Installation Method (Other)

No response

nvf Version

main (baf2076)

Reproduction steps

Enable Markdown LSP support with the default marksman server, then open :LspInfo.

You can also confirm that Neovim does not know this filetype with:

:lua print(vim.inspect(vim.filetype.match({ filename = "test.mdx" })))

This returns nil on my setup.

Expected behavior

marksman should not be configured with a filetype that Neovim does not know by default.

Actual Behavior

marksman is configured with markdown.mdx, which triggers an LSP health warning.

System Information

nix-info --markdown
 - system: `"x86_64-linux"`
 - host os: `Linux 6.19.6, NixOS, 26.05 (Yarara), 26.05.20260310.62dc67a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.31.3`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/n4csl0sj7x6q4qrx36x5a0i1pmjhcgr0-nixos/nixos`

Relevant log output

vim.lsp: Enabled Configurations
- marksman:
  - filetypes: markdown, markdown.mdx
  - WARNING Unknown filetype 'markdown.mdx'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions