Editors & LSP
mdv lsp brings live diagnostics, hover docs, and completion for mdv directives into VS Code, Neovim, Helix, or any LSP-capable editor.
A good flight deck tells you about the fault while your hand is still on the switch.
mdv checkis the post-flight report;mdv lspis the instrument panel — the same validator, wired into your editor, flagging the line as you type it.
mdv lsp --stdio| Feature | What you get |
|---|---|
| Diagnostics | the mdv check verdicts as you type; contract errors land on the . |
| Grounded rules | checked live against their sources |
| Hover | summary, example and link for any directive; how a source is bound |
| Completion | tags, rules, severity overrides, source names, enum values |
| Go to definition | <name> in a mask jumps to its fragment |
Grounding reads files only: nothing is fetched or run, so loaders and ground commands stay CLI-only (source-cli-only; mdv sources doctor explains).
Contracts and config resolve per document, as in check (where contracts live); sources: grounded templates.
The mediva extension is being rebuilt on the new language server and is not published yet. Until
it ships, point any generic LSP client extension at mdv lsp --stdio for Markdown files.
vim.lsp.config("mediva", {
cmd = { "mdv", "lsp", "--stdio" },
filetypes = { "markdown" },
root_markers = { "mediva.config.mjs", ".git" },
})
vim.lsp.enable("mediva")# ~/.config/helix/languages.toml
[language-server.mediva]
command = "mdv"
args = ["lsp", "--stdio"]
[[language]]
name = "markdown"
language-servers = ["marksman", "mediva"]