diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-03-19 14:44:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-19 14:44:46 +0900 |
| commit | ef3f1a92fd39c077e0339b41c290ecd7b4289a49 (patch) | |
| tree | c227cbcf3a424d8d97cf50612b162dee7b2b1141 /lua/nvim_lsp | |
| parent | [docgen] Update README.md (diff) | |
| parent | Support rust-analyzer's rust-project.json format (diff) | |
| download | nvim-lspconfig-ef3f1a92fd39c077e0339b41c290ecd7b4289a49.tar nvim-lspconfig-ef3f1a92fd39c077e0339b41c290ecd7b4289a49.tar.gz nvim-lspconfig-ef3f1a92fd39c077e0339b41c290ecd7b4289a49.tar.bz2 nvim-lspconfig-ef3f1a92fd39c077e0339b41c290ecd7b4289a49.tar.lz nvim-lspconfig-ef3f1a92fd39c077e0339b41c290ecd7b4289a49.tar.xz nvim-lspconfig-ef3f1a92fd39c077e0339b41c290ecd7b4289a49.tar.zst nvim-lspconfig-ef3f1a92fd39c077e0339b41c290ecd7b4289a49.zip | |
Merge pull request #175 from benbrittain/master
Support rust-analyzer's rust-project.json format
Diffstat (limited to 'lua/nvim_lsp')
| -rw-r--r-- | lua/nvim_lsp/rust_analyzer.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim_lsp/rust_analyzer.lua b/lua/nvim_lsp/rust_analyzer.lua index 234a3819..c8c6b118 100644 --- a/lua/nvim_lsp/rust_analyzer.lua +++ b/lua/nvim_lsp/rust_analyzer.lua @@ -5,7 +5,7 @@ configs.rust_analyzer = { default_config = util.utf8_config { cmd = {"rust-analyzer"}; filetypes = {"rust"}; - root_dir = util.root_pattern("Cargo.toml"); + root_dir = util.root_pattern("Cargo.toml", "rust-project.json"); }; docs = { package_json = "https://github.com/rust-analyzer/rust-analyzer/raw/master/editors/code/package.json"; @@ -17,7 +17,7 @@ rust-analyzer (aka rls 2.0), a language server for Rust See [docs](https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/user#settings) for extra settings. ]]; default_config = { - root_dir = [[root_pattern("Cargo.toml")]]; + root_dir = [[root_pattern("Cargo.toml", "rust-project.json")]]; }; }; }; |
