I have confirmed that this is a bug related to nvf
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'.
I have confirmed that this is a bug related to nvf
Description
The Markdown language module configures
marksmanwith the filetypemarkdown.mdx:modules/plugins/languages/markdown.nix:24However, on Neovim 0.11.6,
markdown.mdxis not a known filetype, so:LspInfoshows:If nvf wants to keep
markdown.mdx, it could register the filetype explicitly with something like: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
marksmanserver, then open:LspInfo.You can also confirm that Neovim does not know this filetype with:
This returns
nilon my setup.Expected behavior
marksmanshould not be configured with a filetype that Neovim does not know by default.Actual Behavior
marksmanis configured withmarkdown.mdx, which triggers an LSP health warning.System Information
Relevant log output
vim.lsp: Enabled Configurations - marksman: - filetypes: markdown, markdown.mdx - WARNING Unknown filetype 'markdown.mdx'.