fix rust plugin
This commit is contained in:
		| @@ -7,6 +7,8 @@ return { | ||||
|           "--", | ||||
|           "-W", "clippy::pedantic", | ||||
|           "-W", "clippy::nursery", | ||||
|           "-W", "clippy::unwrap_used", | ||||
|           "-W", "clippy::expect_used", | ||||
|         }, | ||||
|       }, | ||||
|     }, | ||||
|   | ||||
| @@ -1,3 +1,22 @@ | ||||
| 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", | ||||
|       }, | ||||
|     }, | ||||
|   }, | ||||
| }) | ||||
| return { | ||||
|   ["simrat39/rust-tools.nvim"] = { | ||||
|     after = { "mason-lspconfig.nvim" }, | ||||
| @@ -5,10 +24,21 @@ return { | ||||
|       require("rust-tools").setup({ | ||||
|         tools = { | ||||
|           inlay_hints = { | ||||
|             auto = false | ||||
|             auto = true | ||||
|           } | ||||
|         }, | ||||
|         server = astronvim.lsp.config "rust_analyzer", | ||||
|         server = { | ||||
|           checkOnSave = { | ||||
|             command = "clippy", | ||||
|             extraArgs = { | ||||
|               "--", | ||||
|               "-W", "clippy::pedantic", | ||||
|               "-W", "clippy::nursery", | ||||
|               "-W", "clippy::unwrap_used", | ||||
|               "-W", "clippy::expect_used", | ||||
|             }, | ||||
|           }, | ||||
|         }, | ||||
|       }) | ||||
|     end, | ||||
|   }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user