artempyanykh / marksman

Write Markdown with code assist and intelligence in the comfort of your favourite editor.
MIT License
2.07k stars 35 forks source link

Error for other filetype #202

Open fecet opened 1 year ago

fecet commented 1 year ago

I'm using marksman in neovim with mason, it works good on markdown filetype, but If I set it to other filetype like

    filetypes = { "markdown","quarto", "qmd" },

I get

[ERROR][2023-05-02 01:10:44] .../vim/lsp/rpc.lua:734    "rpc"   "marksman"  "stderr"    "[01:10:44 INF] <LSP Entry> Starting Marksman LSP server: {}\n"
iGormilhit commented 1 year ago

I'm using vim-pandoc, so my .md files have pandoc as filetype. I don't get errors, but other filetypes than "markdown" aren't recognized.

  marksman = {
    filetypes = { "markdown", "pandoc" },
  },

When I open a .md file, LspInfo tells me that the filetype is pandoc, but no configured client is attached to this buffer. Of course, if I manually sets the filetype of the buffer to markdown, the marksman client is correctly attached to it.

Below a sceenshot of the :LspInfo output.

image