Skip to content

Conversation

@puremourning
Copy link
Member

@puremourning puremourning commented Dec 30, 2025

  • Format on save support
  • Virtual text for all warnings/errors/notes in file (useful for how rust reports borrow errors!)
  • Command to temporarily clear diagnostics. this is useful because rust diagnostics often highlight entire functions
  • support markdown (filetype highlighting) in detailed diagnostic popup
  • support for file operations and unsolicited fixits

wip

[ ] docs
[ ] tests


This change is Reviewable

This shows the floaty error for all messages. This is particularly
useful for LLVM-based engines like C++ and Rust where "hints" are added
to other parts of the buffer that related to specific messages.

WIth a lot of errors, this can be a bit messy and overwhelming, but in
general the expectation is that there aren't so many.
Add a simple API for enabling format-on-save selectively.

To use this, add the following to something like ftplugin/rust.vim (or
some FileType autocommand or anything else of your choosing):

```
autocmd BufWritePre,FileWritePre <buffer> call youcompleteme#FormatPreFileSave()
```

It's sort of TODO because FileWritePre should use a subrange and that
required range formatting to work, but who uses this "partial write"
feature anyway?
@puremourning puremourning changed the title Improvements to Rust QoL [WIP Improvements to Rust QoL [WIP] Dec 30, 2025
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.

1 participant