79 lines
1.3 KiB
Lua
79 lines
1.3 KiB
Lua
local present, rust = pcall(require, "rust-tools")
|
|
if not present then
|
|
return
|
|
end
|
|
|
|
local options = {
|
|
tools = {
|
|
on_initialized = nil,
|
|
reload_workspace_from_cargo_toml = true,
|
|
|
|
-- inlay hints
|
|
inlay_hints = {
|
|
auto = true,
|
|
only_current_line = false,
|
|
show_parameter_hints = true,
|
|
parameter_hints_prefix = "<- ",
|
|
max_len_align = false,
|
|
},
|
|
enabled_graphviz_backends = {
|
|
"bmp",
|
|
"cgimage",
|
|
"canon",
|
|
"dot",
|
|
"gv",
|
|
"xdot",
|
|
"xdot1.2",
|
|
"xdot1.4",
|
|
"eps",
|
|
"exr",
|
|
"fig",
|
|
"gd",
|
|
"gd2",
|
|
"gif",
|
|
"gtk",
|
|
"ico",
|
|
"cmap",
|
|
"ismap",
|
|
"imap",
|
|
"cmapx",
|
|
"imap_np",
|
|
"cmapx_np",
|
|
"jpg",
|
|
"jpeg",
|
|
"jpe",
|
|
"jp2",
|
|
"json",
|
|
"json0",
|
|
"dot_json",
|
|
"xdot_json",
|
|
"pdf",
|
|
"pic",
|
|
"pct",
|
|
"pict",
|
|
"plain",
|
|
"plain-ext",
|
|
"png",
|
|
"pov",
|
|
"ps",
|
|
"ps2",
|
|
"psd",
|
|
"sgi",
|
|
"svg",
|
|
"svgz",
|
|
"tga",
|
|
"tiff",
|
|
"tif",
|
|
"tk",
|
|
"vml",
|
|
"vmlz",
|
|
"wbmp",
|
|
"webp",
|
|
"xlib",
|
|
"x11",
|
|
},
|
|
},
|
|
}
|
|
|
|
rust.setup(options)
|