summaryrefslogtreecommitdiff
path: root/nvim/lspconfig.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lspconfig.lua')
-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" },
+ },
},
},
},