diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-01-17 13:53:03 -0800 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-01-25 10:43:10 -0800 |
| commit | e5f72ab263fb319c29be4ec41ffa7d8e4b7ca192 (patch) | |
| tree | 2a0b47632f3953306a2076e8d6caf1e1eb2e1df2 /lua/lspconfig/configs.lua | |
| parent | Merge pull request #698 from mjlbach/remove_deprecated_commands (diff) | |
| download | nvim-lspconfig-e5f72ab263fb319c29be4ec41ffa7d8e4b7ca192.tar nvim-lspconfig-e5f72ab263fb319c29be4ec41ffa7d8e4b7ca192.tar.gz nvim-lspconfig-e5f72ab263fb319c29be4ec41ffa7d8e4b7ca192.tar.bz2 nvim-lspconfig-e5f72ab263fb319c29be4ec41ffa7d8e4b7ca192.tar.lz nvim-lspconfig-e5f72ab263fb319c29be4ec41ffa7d8e4b7ca192.tar.xz nvim-lspconfig-e5f72ab263fb319c29be4ec41ffa7d8e4b7ca192.tar.zst nvim-lspconfig-e5f72ab263fb319c29be4ec41ffa7d8e4b7ca192.zip | |
remove client/registerCapability handler
Diffstat (limited to 'lua/lspconfig/configs.lua')
| -rw-r--r-- | lua/lspconfig/configs.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lua/lspconfig/configs.lua b/lua/lspconfig/configs.lua index ddef845b..a17385b9 100644 --- a/lua/lspconfig/configs.lua +++ b/lua/lspconfig/configs.lua @@ -1,4 +1,3 @@ -local log = require 'vim.lsp.log' local util = require 'lspconfig/util' local api, validate, lsp = vim.api, vim.validate, vim.lsp local tbl_extend = vim.tbl_extend @@ -31,24 +30,6 @@ function configs.__newindex(t, config_name, config_def) -- Force this part. default_config.name = config_name - -- The config here is the one which will be instantiated for the new server, - -- which is why this is a function, so that it can refer to the settings - -- object on the server. - local function add_handlers(config) - -- pyright and jdtls ignore dynamicRegistration settings and sent client/registerCapability handler which are unhandled - config.handlers['client/registerCapability'] = function(_, _, _, _) - log.warn(string.format( [[ - The language server %s incorrectly triggers a registerCapability handler - despite dynamicRegistration set to false. Please report upstream. - ]] , config.name)) - return { - result = nil; - error = nil; - } - end - - end - function M.setup(config) validate { root_dir = {config.root_dir, 'f', default_config.root_dir ~= nil}; @@ -106,7 +87,6 @@ function configs.__newindex(t, config_name, config_def) } }) - add_handlers(new_config) if config_def.on_new_config then pcall(config_def.on_new_config, new_config, _root_dir) end |
