diff options
| author | Patricio Serrano <43413954+serranomorante@users.noreply.github.com> | 2024-03-24 06:39:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-24 13:39:12 +0800 |
| commit | 6e5c78ebc9936ca74add66bda22c566f951b6ee5 (patch) | |
| tree | e3aaab5692faabeae2f5e68cd7e983e370abb5c5 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-6e5c78ebc9936ca74add66bda22c566f951b6ee5.tar nvim-lspconfig-6e5c78ebc9936ca74add66bda22c566f951b6ee5.tar.gz nvim-lspconfig-6e5c78ebc9936ca74add66bda22c566f951b6ee5.tar.bz2 nvim-lspconfig-6e5c78ebc9936ca74add66bda22c566f951b6ee5.tar.lz nvim-lspconfig-6e5c78ebc9936ca74add66bda22c566f951b6ee5.tar.xz nvim-lspconfig-6e5c78ebc9936ca74add66bda22c566f951b6ee5.tar.zst nvim-lspconfig-6e5c78ebc9936ca74add66bda22c566f951b6ee5.zip | |
fix: revert to not requiring single_file_mode and root_dir check (#3088)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/manager.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/lspconfig/manager.lua b/lua/lspconfig/manager.lua index 9940d2a2..b1563481 100644 --- a/lua/lspconfig/manager.lua +++ b/lua/lspconfig/manager.lua @@ -203,8 +203,7 @@ function M:add(root_dir, single_file, bufnr) local new_config = self.make_config(root_dir) local client = get_client(self._clients, root_dir, new_config.name) - ---If single_file_mode is false then root_dir should match client otherwise start a new client - if not client or (not single_file and client.config.root_dir and client.config.root_dir ~= root_dir) then + if not client then return self:_start_new_client(bufnr, new_config, root_dir, single_file) end |
