aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/servers/eslintls/README.md9
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
}