feat: enable clippy in rust-analyzer

main
mandlm 2022-03-21 14:49:37 +01:00
parent d634051918
commit a385e1ab19
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,15 @@ local extra_server_opts = {
-- less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc
}
end,
["rust_analyzer"] = function(opts)
opts.settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy"
}
}
}
end,
["sumneko_lua"] = function(opts)
opts.settings = {
Lua = {