add clippy support to rust and show detailed diagnostics on hover

This commit is contained in:
2021-10-20 23:27:39 +02:00
parent fbdcb2f6ac
commit 6c688b5a55
3 changed files with 23 additions and 0 deletions

19
lua/lsp/rust.lua Normal file
View File

@ -0,0 +1,19 @@
local M = {
['rust-analyzer'] = {
assist = {
importGranularity = "module",
importPrefix = "by_self",
},
cargo = {
loadOutDirsFromCheck = true
},
procMacro = {
enable = true
},
checkOnSave = {
command = "clippy"
},
}
}
return M