diff options
| author | William Boman <william@redwill.se> | 2021-08-25 19:36:38 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-08-25 19:36:48 +0200 |
| commit | 196cf2c66144016f8ff682bf1a5c32e8d8b8a1a8 (patch) | |
| tree | d75b3518169b73f81b1613d651f4b954ab49d891 /lua | |
| parent | Update README.md for eslintls (#65) (diff) | |
| download | mason-196cf2c66144016f8ff682bf1a5c32e8d8b8a1a8.tar mason-196cf2c66144016f8ff682bf1a5c32e8d8b8a1a8.tar.gz mason-196cf2c66144016f8ff682bf1a5c32e8d8b8a1a8.tar.bz2 mason-196cf2c66144016f8ff682bf1a5c32e8d8b8a1a8.tar.lz mason-196cf2c66144016f8ff682bf1a5c32e8d8b8a1a8.tar.xz mason-196cf2c66144016f8ff682bf1a5c32e8d8b8a1a8.tar.zst mason-196cf2c66144016f8ff682bf1a5c32e8d8b8a1a8.zip | |
eslintls: fix example
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/eslintls/README.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/nvim-lsp-installer/servers/eslintls/README.md b/lua/nvim-lsp-installer/servers/eslintls/README.md index 67646f70..52f09f0b 100644 --- a/lua/nvim-lsp-installer/servers/eslintls/README.md +++ b/lua/nvim-lsp-installer/servers/eslintls/README.md @@ -16,9 +16,12 @@ for _, server in pairs(installed_servers) do } if server.name == "eslintls" then - -- neovim's LSP client does not currently support dynamic capabilities registration, so we need to set - -- the resolved capabilities of the eslintls server ourselves! - client.resolved_capabilities.document_formatting = true + opts.on_attach = function (client, bufnr) + -- neovim's LSP client does not currently support dynamic capabilities registration, so we need to set + -- the resolved capabilities of the eslintls server ourselves! + client.resolved_capabilities.document_formatting = true + common_on_attach(client, bufnr) + end opts.settings = { format = { enable = true }, -- this will enable formatting } |
