diff options
| author | bstaint <bstaint@gmail.com> | 2022-08-04 02:44:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-03 20:44:41 +0200 |
| commit | 47a521e621570da77e25c31988e2b74412db25e4 (patch) | |
| tree | e256f366cfbb69dd416b6f6cf83b55f94e549531 | |
| parent | feat(ci): include link i auto-close message (diff) | |
| download | nvim-lspconfig-47a521e621570da77e25c31988e2b74412db25e4.tar nvim-lspconfig-47a521e621570da77e25c31988e2b74412db25e4.tar.gz nvim-lspconfig-47a521e621570da77e25c31988e2b74412db25e4.tar.bz2 nvim-lspconfig-47a521e621570da77e25c31988e2b74412db25e4.tar.lz nvim-lspconfig-47a521e621570da77e25c31988e2b74412db25e4.tar.xz nvim-lspconfig-47a521e621570da77e25c31988e2b74412db25e4.tar.zst nvim-lspconfig-47a521e621570da77e25c31988e2b74412db25e4.zip | |
fix(rust_analyzer): sanitize root_dir (#2047)
| -rw-r--r-- | lua/lspconfig/server_configurations/rust_analyzer.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/rust_analyzer.lua b/lua/lspconfig/server_configurations/rust_analyzer.lua index 6331cf51..9b44fc46 100644 --- a/lua/lspconfig/server_configurations/rust_analyzer.lua +++ b/lua/lspconfig/server_configurations/rust_analyzer.lua @@ -47,7 +47,7 @@ return { vim.log.levels.WARN ) end - return cargo_workspace_dir + return util.path.sanitize(cargo_workspace_dir) or cargo_crate_dir or util.root_pattern 'rust-project.json'(fname) or util.find_git_ancestor(fname) |
