diff options
| author | ranjithshegde <ranjithshegde@gmail.com> | 2021-11-29 15:05:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-29 09:05:53 -0500 |
| commit | 8436a197cc76f33fc2dc26145272c66cf5ee193d (patch) | |
| tree | 199d2043f614fd18026e6d8be8aee37d2eae4edf /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-8436a197cc76f33fc2dc26145272c66cf5ee193d.tar nvim-lspconfig-8436a197cc76f33fc2dc26145272c66cf5ee193d.tar.gz nvim-lspconfig-8436a197cc76f33fc2dc26145272c66cf5ee193d.tar.bz2 nvim-lspconfig-8436a197cc76f33fc2dc26145272c66cf5ee193d.tar.lz nvim-lspconfig-8436a197cc76f33fc2dc26145272c66cf5ee193d.tar.xz nvim-lspconfig-8436a197cc76f33fc2dc26145272c66cf5ee193d.tar.zst nvim-lspconfig-8436a197cc76f33fc2dc26145272c66cf5ee193d.zip | |
chore: use client.request instead of buf_request (#1503)
* Use client.request directly instead of vim.lsp.buf_request to call methods
that are outside the official LSP specification, such as clangd's
"textDocument/switchSourceHeader".
* This avoids sending an inapplicable request to all servers, as we cannot
ahead of time validate the methods a given server supports.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/clangd.lua | 35 | ||||
| -rw-r--r-- | lua/lspconfig/server_configurations/texlab.lua | 55 | ||||
| -rw-r--r-- | lua/lspconfig/util.lua | 8 |
3 files changed, 60 insertions, 38 deletions
diff --git a/lua/lspconfig/server_configurations/clangd.lua b/lua/lspconfig/server_configurations/clangd.lua index 08cf307a..cda6ef43 100644 --- a/lua/lspconfig/server_configurations/clangd.lua +++ b/ |
