feat: enable clippy in rust-analyzer
This commit is contained in:
parent
d634051918
commit
a385e1ab19
@ -57,6 +57,15 @@ local extra_server_opts = {
|
|||||||
-- less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc
|
-- less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
["rust_analyzer"] = function(opts)
|
||||||
|
opts.settings = {
|
||||||
|
["rust-analyzer"] = {
|
||||||
|
checkOnSave = {
|
||||||
|
command = "clippy"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end,
|
||||||
["sumneko_lua"] = function(opts)
|
["sumneko_lua"] = function(opts)
|
||||||
opts.settings = {
|
opts.settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
Reference in New Issue
Block a user