add clippy support to rust and show detailed diagnostics on hover
This commit is contained in:
19
lua/lsp/rust.lua
Normal file
19
lua/lsp/rust.lua
Normal 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
|
Reference in New Issue
Block a user