Found a solution to a bug that is caused when Lspsaga's hover doc and Marksman lsp are both active. #1537
FlawlessCasual17
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I found a solution to a bug that is caused when Lspsaga's hover doc and the Marksman Lspconfig are used together.
🪲 The Problem
Sometimes when you open the hover doc from Lspsaga, Marksman (an lsp server for markdown/MDX) will attempt to lint, provide diagnostics through virtual text, and so on. This is because the hover doc will create a new markdown buffer containing the information you are requesting from another lsp server. However, because that buffer is not modifiable, this conflict will cause Marksman to crash with an exit code of
0
.💡 The Solution
To prevent Marksman from conflicting the with Lspsaga's hover doc, you will have to modify the lspconfig setup for the Marksman lsp server. Here is how you should do it in your
init.lua
config file:This will ensure that Marksman ONLY autostarts when a newly created buffer is modifiable, AND the file type is either markdown or MDX.
I hope this helps anyone who was also facing a similar or same problem that I encountered.
Beta Was this translation helpful? Give feedback.
All reactions