Browse Source

Update rust.lua (#935)

Midnight Exigent 4 years ago
parent
commit
1a26b973d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ftplugin/rust.lua

+ 1 - 1
ftplugin/rust.lua

@@ -95,7 +95,7 @@ else
     cmd = { DATA_PATH .. "/lspinstall/rust/rust-analyzer" },
     cmd = { DATA_PATH .. "/lspinstall/rust/rust-analyzer" },
     on_attach = require("lsp").common_on_attach,
     on_attach = require("lsp").common_on_attach,
     filetypes = { "rust" },
     filetypes = { "rust" },
-    root_dir = require("lspconfig.util").root_pattern("Carrust.toml", "rust-project.json"),
+    root_dir = require("lspconfig.util").root_pattern("Cargo.toml", "rust-project.json"),
   }
   }
 end
 end