diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-12-13 10:51:33 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-12-13 14:36:24 +0000 |
commit | 9c20342297391c4076809964e799f2c7705b819b (patch) | |
tree | 7cd408a979aae4da77cb993b6a60cc3cd624d307 /runtime/lua/man.lua | |
parent | 7940ec69136fa992c98aa7b37265fbc2e619232e (diff) | |
download | rneovim-9c20342297391c4076809964e799f2c7705b819b.tar.gz rneovim-9c20342297391c4076809964e799f2c7705b819b.tar.bz2 rneovim-9c20342297391c4076809964e799f2c7705b819b.zip |
fix(lsp): reuse client if configs match and no root dir
Problem:
An LSP configuration that creates client with no root_dir or
workspace_folders can result in vim.lsp.enable attaching to it multiple
times.
Solution:
When checking existing clients, reuse a client if it wasn't initially
configured have any workspace_folders. This more closely matches the
behaviour we had prior to d9235ef
Diffstat (limited to 'runtime/lua/man.lua')
0 files changed, 0 insertions, 0 deletions