2023-09-18 13:19:58 +02:00
|
|
|
require("rust-tools").setup({
|
|
|
|
tools = {
|
|
|
|
inlay_hints = {
|
|
|
|
auto = true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
server = {
|
|
|
|
checkOnSave = {
|
|
|
|
command = "clippy",
|
|
|
|
extraArgs = {
|
|
|
|
"--",
|
|
|
|
"-W", "clippy::pedantic",
|
|
|
|
"-W", "clippy::nursery",
|
|
|
|
"-W", "clippy::unwrap_used",
|
|
|
|
"-W", "clippy::expect_used",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2023-02-23 23:25:59 +01:00
|
|
|
return {
|
|
|
|
["simrat39/rust-tools.nvim"] = {
|
2023-05-25 20:06:18 +02:00
|
|
|
after = { "mason-lspconfig.nvim" },
|
2023-02-23 23:25:59 +01:00
|
|
|
config = function()
|
|
|
|
require("rust-tools").setup({
|
|
|
|
tools = {
|
|
|
|
inlay_hints = {
|
2023-09-18 13:19:58 +02:00
|
|
|
auto = true
|
2023-02-23 23:25:59 +01:00
|
|
|
}
|
|
|
|
},
|
2023-09-18 13:19:58 +02:00
|
|
|
server = {
|
|
|
|
checkOnSave = {
|
|
|
|
command = "clippy",
|
|
|
|
extraArgs = {
|
|
|
|
"--",
|
|
|
|
"-W", "clippy::pedantic",
|
|
|
|
"-W", "clippy::nursery",
|
|
|
|
"-W", "clippy::unwrap_used",
|
|
|
|
"-W", "clippy::expect_used",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-02-23 23:25:59 +01:00
|
|
|
})
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
["lvimuser/lsp-inlayhints.nvim"] = {
|
|
|
|
module = "lsp-inlayhints",
|
|
|
|
config = function() require "user.plugins.lsp-inlayhints" end,
|
|
|
|
},
|
|
|
|
}
|