On NVIM v0.10.0 inlay_hints are shown on inline, which changes the code visual and make lines longer.

How to change inlay_hints to show end-of-line instead in-line?


inline inlay_hints


inlay_hints on end of line

1 Answer 1


The positioning of extmarks depends on the arguments passed into nvim_buf_set_extmark(). Specifically, see the virt_text_pos option. It looks like your "actual" screenshot is set to "inline", but your "expected" screenshot is set to "eol" instead.

Whatever it is that's creating those extmarks needs to call the nvim extmark API with the proper argument in order to set the positioning of the extmarks the way you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.