rust-tools.nvim
rust-tools.nvim copied to clipboard
autoSetHints = true resets RustDisableInlayHints
Specifying autoSetHints = true causes hints to be shown on save. This shouldn't happen if the user has previously disabled hints with RustDisableInlayHitns or RustToggleInlayHints.

- Notice how the hint
ParserConfigreappears after saving the file
Relevant parts of my config
tools = {
autoSetHints = true,
inlay_hints = {
show_parameter_hints = true,
other_hints_prefix = "\194\187 ",
only_current_line_autocmd = "CursorHold",
only_current_line = false,
right_align_padding = 7,
parameter_hints_prefix = "< ",
right_align = false,
highlight = "RustInlayHint",
max_len_align = false,
max_len_align_padding = 1
}
}
You're right, this is a bug
But yeah, gonna rewrite the inlay hints code, its a mess right now