Skip to content

enable-diagnostics option - #15188

Open
Axlefublr wants to merge 3 commits into
helix-editor:masterfrom
Axlefublr:Axlefublr/enable_diagnostics
Open

enable-diagnostics option#15188
Axlefublr wants to merge 3 commits into
helix-editor:masterfrom
Axlefublr:Axlefublr/enable_diagnostics

Conversation

@Axlefublr

@Axlefublr Axlefublr commented Jan 25, 2026

Copy link
Copy Markdown
Contributor

Combine all diagnostics options into a struct.

Previously:

editor {
   inline-diagnostics: {
      …
   }
   end-of-line-diagnostics: …
}

Now:

editor {
   diagnostics {
      enable: bool
      inline: {
         …
      }
      end-of-line: …
   }
}

New diagnostics.enable option that allows you to toggle showing any diagnostics. Rather than having to individually change the two diagnostic variants.

old pr body

Reopening #12203 by @nik-rev, taking on maintaining this pr.

I took the final form of the pr's diff into a single commit¹, and attributed nik as the author of it. I haven't needed to actually change any of the code.

¹ Easier this way so that I only need to solve merge conflicts with the latest diff of the pr, rather than every commit that comes before it.


enable-diagnostics option, that lets you easily toggle showing diagnostics globally.
true by default.

Comment thread helix-view/src/editor.rs Outdated
@Axlefublr

Axlefublr commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

Did the restructure.
I'll edit the pr body to ease in the soon-incoming angry helix users with what changed.

@LnxgpI0k

Copy link
Copy Markdown

I'm confused on the namings for different diagnostic types. What are "end of line" diagnostics? Are the diagnostics in the top right part of this PR?

@Axlefublr

Copy link
Copy Markdown
Contributor Author

honestly? I don't even remember. but they were called end-of-line-diagnostics. Now they are called end-of-line inside of the diagnostics object

@LnxgpI0k

LnxgpI0k commented Feb 12, 2026

Copy link
Copy Markdown

Is there a command to view them once? Maybe something in the quick (space bar) menu?

@Axlefublr

Copy link
Copy Markdown
Contributor Author

there's spaced iirc. I only use inline diagnostics ngl

@sploders101

sploders101 commented Feb 26, 2026

Copy link
Copy Markdown

Is there a command to view them once? Maybe something in the quick (space bar) menu?

This is something I wanted as well. I have a working prototype of it in my personal Helix fork and was thinking about prepping it to contribute upstream.

What it does now is respect the current configuration, but add a per-document toggle (<space><C-d> or "toggle_inlay_diagnostics") that temporarily lowers the severity level of multi-line diagnostics toinfo. I'm still testing out how I like it, and have a status line indicator for it on my work laptop, but I'll have to replicate it off-hours before I can push it up

EDIT: I've pushed it to sploders101/helix personal branch. I don't think this discussion belongs here though, so if you want to bring it up in another issue, please tag me and I'll chime in with discussion and potentially a PR. Note that my personal branch is not what will end up in the PR. That's just my personal copy where I merge whatever I want. I'll have to break the changes out first, but feel free to try it as-is and provide feedback

@Axlefublr
Axlefublr force-pushed the Axlefublr/enable_diagnostics branch from 48baf2a to 80fca9c Compare September 1, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants