artempyanykh / marksman

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

Feature request: respect editorconfig settings #291

Open heapifyman opened 8 months ago

heapifyman commented 8 months ago

Would be nice if marksman could take into account all editorconfig settings, like max_line_length, trim_trailing_whitespace, etc.

Supporting editorconfig indentation settings was already mentioned in #94. But I think it might be useful to also respect the rest of the "universal" settings.

For example, I have max_line_length = off for .md files but I still get warnings about MD013/line-length in neovim.

artempyanykh commented 8 months ago

Hi @heapifyman!

For example, I have max_line_length = off for .md files but I still get warnings about MD013/line-length in neovim.

This diagnostics is coming from some other place, not from marksman. Generally, marksman has nothing to do with formatting or checking line length. #94 is relevant only in the context of producing big chunks of text via a quick fix (Table of Contents).

heapifyman commented 8 months ago

@artempyanykh Ok. Thanks for clarifying, and sorry if I mixed things up.

I think my suggestion might still be relevant for #94 then: the text generated for TOC should not only adhere to the indentation settings in .editorconfig, but also to settings like max_line_length?