With nvim-lspconfig the require('lspconfig') is deprecated and now we have to use vim.lsp.config['lua_ls']. Documentation should be updated for this.