How to turn "*" into an exact version number? #67
-
I can see the version number in the inlay hint (which btw could be made into an inline virtual text soon?), is there anyway to automatically substitute |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
All functions that can insert a version accept an Here is an example: require("crates").update_crate(true) You can also configure the keymapping inside the versions popup, |
Beta Was this translation helpful? Give feedback.
All functions that can insert a version accept an
alt
parameter, to make them use the opposite of thesmart_insert
config option, which is on by default. In case of a plain*
version requirement nothing is inserted, which is intentional. Passingtrue
for thealt
parameter then will insert the whole version.Here is an example:
You can also configure the keymapping inside the versions popup,
popup.keys.select_alt
which iss
by default.