From 75c5d0b49ba6e05e244ec8e1a85bee1ff310f1f5 Mon Sep 17 00:00:00 2001 From: c-my Date: Thu, 28 Apr 2022 23:48:33 +0800 Subject: [PATCH] lsp: remove useless code --- lua/configs/plugins/lsp_installer.lua | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/lua/configs/plugins/lsp_installer.lua b/lua/configs/plugins/lsp_installer.lua index a81fc0c..4a17dcb 100644 --- a/lua/configs/plugins/lsp_installer.lua +++ b/lua/configs/plugins/lsp_installer.lua @@ -54,30 +54,3 @@ lspconfig.jdtls.setup({ on_attach = on_attach, capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()), }) - --- Register a handler that will be called for each installed server when it's ready (i.e. when installation is finished --- or if the server is already installed). --- lsp_installer.on_server_ready(function(server) --- local opts = { --- on_attach = on_attach, --- flags = { --- -- This will be the default in neovim 0.7+ --- debounce_text_changes = 150 --- }, --- capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()), --- } --- --- if server.name == 'sumneko_lua' then --- local sumneko_lua_opts = require('configs.plugins.lsp_settings.sumneko_lua') --- opts.settings = sumneko_lua_opts --- end --- -- (optional) Customize the options passed to the server --- -- if server.name == "tsserver" then --- -- opts.root_dir = function() ... end --- -- end --- --- -- This setup() function will take the provided server configuration and decorate it with the necessary properties --- -- before passing it onwards to lspconfig. --- -- Refer to https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md --- server:setup(opts) --- end)