diff options
| -rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -188,7 +188,9 @@ local on_attach = function(client, bufnr) end end -local servers = { "pyright" } +-- Use a loop to conveniently both setup defined servers +-- and map buffer local keybindings when the language server attaches +local servers = { "pyright", "rust_analyzer", "tsserver" } for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup { on_attach = on_attach } end |
