diff options
| -rw-r--r-- | README.md | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -63,20 +63,15 @@ Plug 'williamboman/nvim-lsp-installer' ```lua local lsp_installer = require("nvim-lsp-installer") -function common_on_attach(client, bufnr) - -- ... set up buffer keymaps, etc. -end - lsp_installer.on_server_ready(function(server) - local opts = { - on_attach = common_on_attach, - } + local opts = {} -- (optional) Customize the options passed to the server -- if server.name == "tsserver" then -- opts.root_dir = function() ... end -- end + -- This setup() function is exactly the same as lspconfig's setup function (:help lspconfig-quickstart) server:setup(opts) vim.cmd [[ do User LspAttachBuffers ]] end) |
