diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2021-12-02 20:55:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-02 20:55:07 +0100 |
| commit | 4edd1a7a51a9d7298706501066ead7e2c2703285 (patch) | |
| tree | f411d78b287a21e9779ff64bf9a0bee4033c03c8 /lua/lspconfig/util.lua | |
| parent | fix(eslint): openDoc function on Linux (#1529) (diff) | |
| download | nvim-lspconfig-4edd1a7a51a9d7298706501066ead7e2c2703285.tar nvim-lspconfig-4edd1a7a51a9d7298706501066ead7e2c2703285.tar.gz nvim-lspconfig-4edd1a7a51a9d7298706501066ead7e2c2703285.tar.bz2 nvim-lspconfig-4edd1a7a51a9d7298706501066ead7e2c2703285.tar.lz nvim-lspconfig-4edd1a7a51a9d7298706501066ead7e2c2703285.tar.xz nvim-lspconfig-4edd1a7a51a9d7298706501066ead7e2c2703285.tar.zst nvim-lspconfig-4edd1a7a51a9d7298706501066ead7e2c2703285.zip | |
chore!: remove compat shims for pre-0.5.1 handlers (#1530)
Diffstat (limited to 'lua/lspconfig/util.lua')
| -rw-r--r-- | lua/lspconfig/util.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index c7f4eb53..477a41f5 100644 --- a/lua/lspconfig/util.lua +++ b/lua/lspconfig/util.lua @@ -19,27 +19,6 @@ M.default_config = { -- global on_setup hook M.on_setup = nil --- add compatibility shim for breaking signature change --- from https://github.com/mfussenegger/nvim-lsp-compl/ --- TODO: remove after Neovim release -function M.compat_handler(handler) - return function(...) - local config_or_client_id = select(4, ...) - local is_new = type(config_or_client_id) ~= 'number' - if is_new then - return handler(...) - else - local err = select(1, ...) - local method = select(2, ...) - local result = select(3, ...) - local client_id = select(4, ...) - local bufnr = select(5, ...) - local config = select(6, ...) - return handler(err, result, { method = method, client_id = client_id, bufnr = bufnr }, config) - end - end -end - function M.validate_bufnr(bufnr) validate { bufnr = { bufnr, 'n' }, |
