zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.3k stars 2.99k forks source link

soft_wrap override in settings is not respected? #5280

Open burodepeper opened 2 years ago

burodepeper commented 2 years ago

I have "soft_wrap": "editor_width" in my settings. The default setting is "languages.Markdown.soft_wrap": "preferred_line_length". When editing a Markdown file, it uses my personal setting and disregards the more specific default setting. This feels counter intuitive.

Environment: Zed 0.48.1 – /Applications/Zed.app macOS 12.4 architecture x86_64

raggesilver commented 6 months ago

I want to add that the "global" soft_wrap preference is ignored if there are any language overrides. I didn't have an override for soft_wrap specifically, but removing the languages object made my editor respect the "global" config.

Huliiiiii commented 1 month ago

Zed uses neither global nor language specific settings if there are any language overrides. Zed: v0.153.0 (Zed Dev eecff753fbd5ab7eecc886122cd509cb45a97326) OS: Windows 10.0.22631 Memory: 31.9 GiB Architecture: x86_64 GPU: NVIDIA GeForce RTX 2060 || NVIDIA || 556.12

image

giacomocavalieri commented 1 day ago

I'm experiencing the same issue and I have no language overrides in my configuration. I have "soft_wrap": "none" and it still wraps my rust code after the 80 chars limit.

Zed: v0.159.7 (Zed)
OS: macOS 15.1.0
Memory: 16 GiB
Architecture: aarch64