Also reading the thread about Making integral ∫ use \limits by default with unicode-math I'm not quite happy with the solution. With pdfLaTeX I use the code
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[intlimits]{amsmath}
\begin{document}
\[A=\int_0^{b}f(x)\mathrm{d}x\]
\end{document}
and get
Compiling the code
\documentclass{article}
\usepackage[intlimits]{amsmath}
\usepackage{fontspec,unicode-math}
\setmainfont{Latin Modern Roman}
\setmathfont{Latin Modern Math}
\begin{document}
\[A=\int_0^{b}f(x)\mathrm{d}x\]
\end{document}
with LuaLaTeX I get
Is there any possibility—beside the solution in the linked question—to get the same output with both pdfLaTeX and LuaLaTeX?