rust-tools config changes
This commit is contained in:
parent
c9f7ac1063
commit
faff267747
|
|
@ -12,23 +12,25 @@ local options = {
|
||||||
inlay_hints = {
|
inlay_hints = {
|
||||||
auto = true,
|
auto = true,
|
||||||
only_current_line = false,
|
only_current_line = false,
|
||||||
-- whether to show parameter hints with the inlay hints or not
|
|
||||||
-- default: true
|
|
||||||
show_parameter_hints = true,
|
show_parameter_hints = true,
|
||||||
},
|
},
|
||||||
|
hover_actions = {
|
||||||
|
auto_focus = true,
|
||||||
|
},
|
||||||
on_initialized = function()
|
on_initialized = function()
|
||||||
-- ih.set_all()
|
-- ih.set_all()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
server = {
|
server = {
|
||||||
on_attach =
|
on_attach = require("plugins.configs.lspconfig").on_attach,
|
||||||
require("plugins.configs.lspconfig").on_attach
|
standalone = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
checkOnSave = {
|
checkOnSave = {
|
||||||
command = "check",
|
-- command = "check",
|
||||||
|
command = "clippy",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in New Issue