aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md9
1 files changed, 2 insertions, 7 deletions
diff --git a/README.md b/README.md
index ca85ad12..25a0698d 100644
--- a/README.md
+++ b/README.md
@@ -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)