diff options
author | Michal Liszcz <liszcz.michal@gmail.com> | 2023-12-22 15:03:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 15:03:13 +0100 |
commit | 031088fc0afffe4af6fa90d68d5b93ca09992ef1 (patch) | |
tree | b070d3d66acefc247fbd55b8280f9ded668b90cd /runtime/lua/vim/lsp.lua | |
parent | 2151e781e47d647c17812bcc27395fc424398d94 (diff) | |
download | rneovim-031088fc0afffe4af6fa90d68d5b93ca09992ef1.tar.gz rneovim-031088fc0afffe4af6fa90d68d5b93ca09992ef1.tar.bz2 rneovim-031088fc0afffe4af6fa90d68d5b93ca09992ef1.zip |
fix(lsp): filetype matching to documentSelector in dynamic capabilities (#25425)
Use the get_language_id client option to resolve the filetype when
matching the document selector in a dynamic capability.
Co-authored-by: Mathias Fussenegger <f.mathias@zignar.net>
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 6476335213..ca7222a8f3 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -1073,7 +1073,7 @@ function lsp.start_client(config) end --- @param method string - --- @param opts? {bufnr?: number} + --- @param opts? {bufnr: integer?} client.supports_method = function(method, opts) opts = opts or {} local required_capability = lsp._request_name_to_capability[method] |