Explorar el Código

Merge pull request #376 from Numkil/patch-bug

Fix bug when server not explicitely defined in configuration but installed
Chris Patti hace 3 años
padre
commit
3dc1c1c4c2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      init.lua

+ 1 - 1
init.lua

@@ -463,7 +463,7 @@ mason_lspconfig.setup_handlers {
       capabilities = capabilities,
       on_attach = on_attach,
       settings = servers[server_name],
-      filetypes = servers[server_name].filetypes,
+      filetypes = (servers[server_name] or {}).filetypes,
     }
   end
 }