aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-02-02 21:57:14 -0800
committerGitHub <noreply@github.com>2021-02-02 21:57:14 -0800
commitd118aab4ec3ff4ce33f9508eba28449115a2649a (patch)
tree7646e9acfc0ebabea16eac58c4d622b1842b320a /lua
parentMerge pull request #475 from mjlbach/fix_custom_config_documentation (diff)
parentrust_analyzer: Fix the root_dir shell command (diff)
downloadnvim-lspconfig-d118aab4ec3ff4ce33f9508eba28449115a2649a.tar
nvim-lspconfig-d118aab4ec3ff4ce33f9508eba28449115a2649a.tar.gz
nvim-lspconfig-d118aab4ec3ff4ce33f9508eba28449115a2649a.tar.bz2
nvim-lspconfig-d118aab4ec3ff4ce33f9508eba28449115a2649a.tar.lz
nvim-lspconfig-d118aab4ec3ff4ce33f9508eba28449115a2649a.tar.xz
nvim-lspconfig-d118aab4ec3ff4ce33f9508eba28449115a2649a.tar.zst
nvim-lspconfig-d118aab4ec3ff4ce33f9508eba28449115a2649a.zip
Merge pull request #710 from stevearc/stevearc-rust
rust_analyzer: Fix the root_dir shell command
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/rust_analyzer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/rust_analyzer.lua b/lua/lspconfig/rust_analyzer.lua
index 6ba704b3..08812819 100644
--- a/lua/lspconfig/rust_analyzer.lua
+++ b/lua/lspconfig/rust_analyzer.lua
@@ -8,7 +8,7 @@ configs.rust_analyzer = {
root_dir = function(fname)
local cargo_metadata = vim.fn.system("cargo metadata --format-version 1")
local cargo_root = nil
- if vim.v.shell_handler == 0 then
+ if vim.v.shell_error == 0 then
cargo_root = vim.fn.json_decode(cargo_metadata)["workspace_root"]
end
return cargo_root or