Replies: 3 comments 3 replies
-
Duplicate of #1039? |
Beta Was this translation helpful? Give feedback.
-
I am not sure if it's strictly a duplicate. From what I gathered from reading the referenced discussion is that it was about disabling markdown-mode. This is not about disabling markdown-mode. It's about having different settings for different use-cases of markdown-mode: 0) viewing eglot/eldoc information 1) editing a markdown document One way that comes to mind is that when eglot/eldoc stylizes the buffer with markdown-mode there's some bit of information that could be detected in markdown-mode's hook and thus different settings applied? |
Beta Was this translation helpful? Give feedback.
-
Also if there was the chance to run a user-defined filter function which had the ability to modify the buffer to be displayed that would let the user to determine what and how the information is displayed. One could argue it's the responsibility of the lsp to be configurable in a way to allow the user to select what it returns in the first place. And perhaps that is in some way the ideal situation. In practice some lsps might evolve those capabilities, but in the meanwhile a practical choice could be to do it on the editor side right before displaying. At least I don't switch the specific lsp for a language very often so it seems like it'd be practical for users to write their filtering functions specific to their environments and get fair bit of mileage out of them. |
Beta Was this translation helpful? Give feedback.
-
How to have markdown-mode configuration specific for eglot/eldoc information in the minibuffer(?) area?
Honestly it's not entirely clear to me what gadget is responsible for the information display when you put the cursor on a symbol such as a function. At any rate it seems to be shown using markdown-mode. Possibly using this?
The markdown handed out by the lsp I use, clangd for c++, uses some markdown features I don't care to see when viewing the eglot/eldoc information. I would like to see them when I am editing a markdown document. For example in the eglot/eldoc use-case there is no need to make linebreaks caused by two consecutive spaces at the end of the line to be visible in any special way. Which would be possible to achieve by changing the face attributes of markdown-line-break-face. This isn't the only difference I'd like to setup, it's just an example.
Beta Was this translation helpful? Give feedback.
All reactions