diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-11-26 10:35:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-26 10:35:12 -0500 |
| commit | b49965f5430ec3cb68d8dcd24b9d49f042cf6d2a (patch) | |
| tree | 18e2e669e74dddc3f2904b1121d701b459f5399b /lua/lspconfig/util.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-b49965f5430ec3cb68d8dcd24b9d49f042cf6d2a.tar nvim-lspconfig-b49965f5430ec3cb68d8dcd24b9d49f042cf6d2a.tar.gz nvim-lspconfig-b49965f5430ec3cb68d8dcd24b9d49f042cf6d2a.tar.bz2 nvim-lspconfig-b49965f5430ec3cb68d8dcd24b9d49f042cf6d2a.tar.lz nvim-lspconfig-b49965f5430ec3cb68d8dcd24b9d49f042cf6d2a.tar.xz nvim-lspconfig-b49965f5430ec3cb68d8dcd24b9d49f042cf6d2a.tar.zst nvim-lspconfig-b49965f5430ec3cb68d8dcd24b9d49f042cf6d2a.zip | |
fix: single_file_mode should be single_file_support (#1489)
Diffstat (limited to 'lua/lspconfig/util.lua')
| -rw-r--r-- | lua/lspconfig/util.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index ec3ffa95..915396b3 100644 --- a/lua/lspconfig/util.lua +++ b/lua/lspconfig/util.lua @@ -236,9 +236,9 @@ function M.server_per_root_dir_manager(_make_config) local single_file_clients = {} local manager = {} - function manager.add(root_dir, single_file_mode) + function manager.add(root_dir, single_file_support) local client_id - if single_file_mode then + if single_file_support then client_id = single_file_clients[root_dir] else if not root_dir then @@ -280,7 +280,7 @@ function M.server_per_root_dir_manager(_make_config) -- Sending rootDirectory and workspaceFolders as null is not explicitly -- codified in the spec. Certain servers crash if initialized with a NULL -- root directory. - if single_file_mode then + if single_file_support then new_config.root_dir = nil new_config.workspace_folders = nil end @@ -291,7 +291,7 @@ function M.server_per_root_dir_manager(_make_config) return end - if single_file_mode then + if single_file_support then single_file_clients[root_dir] = client_id else clients[root_dir] = client_id |
