summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2023-04-12 16:25:23 -0500
committerBrad Clawsie <brad@b7j0c.org>2023-04-12 16:25:23 -0500
commit5e68edd3b0a0edc5e02586fe6993654bc7ec7264 (patch)
tree94a7b40ba81275564e31de678d4af4aa83bd80ef
parent21c68324d80654f717aacb847c0b57b368eb8613 (diff)
clippy
-rw-r--r--nvim/lspconfig.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/nvim/lspconfig.lua b/nvim/lspconfig.lua
index 6d1d920..1314818 100644
--- a/nvim/lspconfig.lua
+++ b/nvim/lspconfig.lua
@@ -18,6 +18,9 @@ return {
prefix = "self",
},
cargo = {
+ allFeatures = true,
+ loadOutDirsFromCheck = true,
+ runBuildScripts = true,
buildScripts = {
enable = true,
},
@@ -25,6 +28,11 @@ return {
procMacro = {
enable = true,
},
+ checkOnSave = {
+ allFeatures = true,
+ command = "clippy",
+ extraArgs = { "--no-deps" },
+ },
},
},
},