-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set soft-wrap.enable true
should be set by default in text-based files
#8331
Comments
Agreed but that config option is currently global. It'll require some work to introduce document specific/language specific config. |
@archseer I am really sorry, but what do you mean by "being global"? Can't we set this config for markdown files only? For instance: [[language]]
name = "markdown"
scope = "source.md"
injection-regex = "md|markdown"
file-types = ["md", "markdown", "PULLREQ_EDITMSG"]
soft-wrap.enable = true
roots = [".marksman.toml"]
language-servers = [ "marksman" ]
indent = { tab-width = 2, unit = " " } ?? |
No. By global it means that it's only in |
In the case of softwrap it can be set per language, I don't think it is in the docs but it does work and is defined here: helix/helix-core/src/syntax.rs Line 107 in 1c88432
|
I also confirm that the
|
Hmm seems that this isn't documented Lines 53 to 70 in 1c88432
|
Since the PR was merged I think this can be closed |
That PR added the docs for Lines 1328 to 1335 in c3cb179
|
Oh, you're right, haha. So, are we going to add that? If yes I can make the PR. |
Yep feel free to send a PR |
Also text files? This is how it is in Zed. |
It is also sensible to set it to |
set soft-wrap.enable true
should be set by default in .md
filesset soft-wrap.enable true
should be set by default in text-based files
Would that work for empty scratch buffers by default as well? Are they assumed to be text-based? |
I suppose that it is sensible to set the
soft-wrap
feature to true in the default settings for markdown files as it often involves long paragraphs....The text was updated successfully, but these errors were encountered: